Browse Source

Remove debug logging

pull/46604/head
Stéphane Nicoll 6 months ago
parent
commit
7958d0e687
  1. 4
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java

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

@ -77,7 +77,6 @@ class NoSuchMethodFailureAnalyzerTests { @@ -77,7 +77,6 @@ class NoSuchMethodFailureAnalyzerTests {
void whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed() {
Throwable failure = createFailureForMissingMethod();
assertThat(failure).isNotNull();
failure.printStackTrace();
FailureAnalysis analysis = new NoSuchMethodFailureAnalyzer().analyze(failure);
assertThat(analysis).isNotNull();
assertThat(analysis.getDescription())
@ -107,9 +106,8 @@ class NoSuchMethodFailureAnalyzerTests { @@ -107,9 +106,8 @@ class NoSuchMethodFailureAnalyzerTests {
private Throwable createFailureForMissingMethod() {
try {
System.out.println(MimeType.class.getProtectionDomain().getCodeSource().getLocation());
MimeType mimeType = new MimeType("application", "json");
System.out.println(mimeType.isMoreSpecific(null));
mimeType.isMoreSpecific(null);
return null;
}
catch (Throwable ex) {

Loading…
Cancel
Save