File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,11 @@ void createPrinterWhenStandardAppliesCustomizations() {
152
152
.withLineSeparator ("\n " );
153
153
String actual = TestException .withoutLineNumbers (printer .printStackTraceToString (exception ));
154
154
assertThat (actual ).isEqualToNormalizingNewlines ("""
155
- java.lang.RuntimeException: exception
156
- at org.springframework.boot.logging.TestException.actualCreateException(TestException.java:NN)
157
- at org.springframework.boot.logging.TestException.createException(TestException.java:NN)
158
- ... 2 filtered
159
- Suppressed: java.lang.RuntimeException: supressed
160
- at o...""" );
155
+ java.lang.RuntimeException: root
156
+ at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN)
157
+ at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN)
158
+ Wrapped by: java.lang.RuntimeException: cause
159
+ at org.springframework.boot.log...""" );
161
160
}
162
161
163
162
@ Test
@@ -184,7 +183,7 @@ void createPrinterWhenClassNameInjectsConfiguredPrinter() {
184
183
true , null );
185
184
StackTracePrinter printer = properties .createPrinter ();
186
185
String actual = TestException .withoutLineNumbers (printer .printStackTraceToString (exception ));
187
- assertThat (actual ).isEqualTo ("RuntimeExceptionexception ! at org.spr ..." );
186
+ assertThat (actual ).isEqualTo ("RuntimeExceptionroot ! at org.springfr ..." );
188
187
189
188
}
190
189
You can’t perform that action at this time.
0 commit comments