You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2021/03/29 18:19:52 UTC
[karaf] branch main updated: [KARAF-5362]remove unnecessary
try..catch from the test
This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new ae5e22c [KARAF-5362]remove unnecessary try..catch from the test
ae5e22c is described below
commit ae5e22c2bd89d272c2c9fb91da3fa4c0db11bcc2
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Mon Mar 29 14:13:16 2021 -0400
[KARAF-5362]remove unnecessary try..catch from the test
---
.../karaf/shell/impl/console/session/SessionFactoryImplTest.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/shell/core/src/test/java/org/apache/karaf/shell/impl/console/session/SessionFactoryImplTest.java b/shell/core/src/test/java/org/apache/karaf/shell/impl/console/session/SessionFactoryImplTest.java
index c658691..36ecfe4 100644
--- a/shell/core/src/test/java/org/apache/karaf/shell/impl/console/session/SessionFactoryImplTest.java
+++ b/shell/core/src/test/java/org/apache/karaf/shell/impl/console/session/SessionFactoryImplTest.java
@@ -33,12 +33,8 @@ public class SessionFactoryImplTest {
@Test
public void createWithNullInputStream() throws UnsupportedEncodingException {
- try {
final SessionFactory sessionFactory = new SessionFactoryImpl(createMock(ThreadIO.class));
sessionFactory.create(null, createMock(PrintStream.class), createMock(PrintStream.class));
- } catch (Exception ex) {
- ex.printStackTrace();
- }
}
}
\ No newline at end of file