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:57 UTC
[karaf] branch karaf-4.2.x 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 karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
new a692529 [KARAF-5362]remove unnecessary try..catch from the test
a692529 is described below
commit a6925291cc57b9274e3ba6580921e44566df7857
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Mon Mar 29 14:13:16 2021 -0400
[KARAF-5362]remove unnecessary try..catch from the test
(cherry picked from commit ae5e22c2bd89d272c2c9fb91da3fa4c0db11bcc2)
---
.../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