Commit 2c4e451f authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #13952 from izeye:remove-print-stack-trace

* pr/13952:
  Remove ex.printStackTrace() in tests
parents 3d85873a d4fba783
...@@ -188,7 +188,6 @@ public class LiveReloadServerTests { ...@@ -188,7 +188,6 @@ public class LiveReloadServerTests {
super.run(); super.run();
} }
catch (ConnectionClosedException ex) { catch (ConnectionClosedException ex) {
ex.printStackTrace();
synchronized (MonitoredLiveReloadServer.this.monitor) { synchronized (MonitoredLiveReloadServer.this.monitor) {
MonitoredLiveReloadServer.this.closedExceptions.add(ex); MonitoredLiveReloadServer.this.closedExceptions.add(ex);
} }
......
...@@ -162,7 +162,6 @@ public class SocketTargetServerConnectionTests { ...@@ -162,7 +162,6 @@ public class SocketTargetServerConnectionTests {
channel.close(); channel.close();
} }
catch (Exception ex) { catch (Exception ex) {
ex.printStackTrace();
fail(); fail();
} }
} }
......
...@@ -124,7 +124,6 @@ public class CollectionBinderTests { ...@@ -124,7 +124,6 @@ public class CollectionBinderTests {
fail("No exception thrown"); fail("No exception thrown");
} }
catch (BindException ex) { catch (BindException ex) {
ex.printStackTrace();
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex
.getCause()).getUnboundProperties(); .getCause()).getUnboundProperties();
assertThat(unbound).hasSize(1); assertThat(unbound).hasSize(1);
...@@ -147,7 +146,6 @@ public class CollectionBinderTests { ...@@ -147,7 +146,6 @@ public class CollectionBinderTests {
fail("No exception thrown"); fail("No exception thrown");
} }
catch (BindException ex) { catch (BindException ex) {
ex.printStackTrace();
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex
.getCause()).getUnboundProperties(); .getCause()).getUnboundProperties();
assertThat(unbound).hasSize(1); assertThat(unbound).hasSize(1);
......
...@@ -144,7 +144,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests { ...@@ -144,7 +144,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
return null; return null;
} }
catch (Exception ex) { catch (Exception ex) {
ex.printStackTrace();
return ex; return ex;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment