Skip to content

Commit 2c4e451

Browse files
committed
Merge pull request #13952 from izeye:remove-print-stack-trace
* pr/13952: Remove ex.printStackTrace() in tests
2 parents 3d85873 + d4fba78 commit 2c4e451

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ public void run() throws Exception {
188188
super.run();
189189
}
190190
catch (ConnectionClosedException ex) {
191-
ex.printStackTrace();
192191
synchronized (MonitoredLiveReloadServer.this.monitor) {
193192
MonitoredLiveReloadServer.this.closedExceptions.add(ex);
194193
}

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/server/SocketTargetServerConnectionTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ public void run() {
162162
channel.close();
163163
}
164164
catch (Exception ex) {
165-
ex.printStackTrace();
166165
fail();
167166
}
168167
}

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public void bindToCollectionWhenNonSequentialShouldThrowException() {
124124
fail("No exception thrown");
125125
}
126126
catch (BindException ex) {
127-
ex.printStackTrace();
128127
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex
129128
.getCause()).getUnboundProperties();
130129
assertThat(unbound).hasSize(1);
@@ -147,7 +146,6 @@ public void bindToNonScalarCollectionWhenNonSequentialShouldThrowException() {
147146
fail("No exception thrown");
148147
}
149148
catch (BindException ex) {
150-
ex.printStackTrace();
151149
Set<ConfigurationProperty> unbound = ((UnboundConfigurationPropertiesException) ex
152150
.getCause()).getUnboundProperties();
153151
assertThat(unbound).hasSize(1);

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ private Exception createFailure(Class<?> configuration) {
144144
return null;
145145
}
146146
catch (Exception ex) {
147-
ex.printStackTrace();
148147
return ex;
149148
}
150149
}

0 commit comments

Comments
 (0)