From a638dcd51b253b14aa898e7db2db10f6c08b683f Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 24 Oct 2016 18:07:40 +0200 Subject: [PATCH] Remove unnecessary use of System.out.println --- ...ecurityFilterAutoConfigurationEarlyInitializationTests.java | 1 - .../org/springframework/boot/loader/tools/JvmUtilsTests.java | 1 - .../embedded/AbstractEmbeddedServletContainerFactoryTests.java | 3 --- .../tomcat/TomcatEmbeddedServletContainerFactoryTests.java | 3 --- .../analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java | 1 - 5 files changed, 9 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfigurationEarlyInitializationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfigurationEarlyInitializationTests.java index cf73a53f06..ee440b9561 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfigurationEarlyInitializationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfigurationEarlyInitializationTests.java @@ -146,7 +146,6 @@ public class SecurityFilterAutoConfigurationEarlyInitializationTests { @RequestMapping("/") public void convert() { - System.out.println("Hello"); this.conversionService.convert(new SourceType(), DestinationType.class); } diff --git a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/JvmUtilsTests.java b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/JvmUtilsTests.java index 597ce61507..61b02b94f0 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/JvmUtilsTests.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/JvmUtilsTests.java @@ -33,7 +33,6 @@ public class JvmUtilsTests { @Test public void getToolsJar() throws Exception { URL jarUrl = JvmUtils.getToolsJarUrl(); - // System.out.println(jarUrl); assertThat(jarUrl.toString()).endsWith(".jar"); assertThat(new File(jarUrl.toURI()).exists()).isTrue(); } diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java index 71962fbb4c..21fc482704 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java @@ -669,9 +669,6 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests { .getEmbeddedServletContainer(sessionServletRegistration()); this.container.start(); String s3 = getResponse(getLocalUrl("/session")); - System.out.println(s1); - System.out.println(s2); - System.out.println(s3); String message = "Session error s1=" + s1 + " s2=" + s2 + " s3=" + s3; assertThat(s2.split(":")[0]).as(message).isEqualTo(s1.split(":")[1]); assertThat(s3.split(":")[0]).as(message).isEqualTo(s2.split(":")[1]); diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java index 80289374a4..be19e2be50 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java @@ -394,9 +394,6 @@ public class TomcatEmbeddedServletContainerFactoryTests .getEmbeddedServletContainer(sessionServletRegistration()); this.container.start(); String s3 = getResponse(getLocalUrl("/session")); - System.out.println(s1); - System.out.println(s2); - System.out.println(s3); String message = "Session error s1=" + s1 + " s2=" + s2 + " s3=" + s3; assertThat(s2.split(":")[0]).as(message).isEqualTo(s1.split(":")[1]); assertThat(s3.split(":")[0]).as(message).isNotEqualTo(s2.split(":")[1]); diff --git a/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java b/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java index e82d376a90..664c1bb8b7 100644 --- a/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java @@ -144,7 +144,6 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests { private FailureAnalysis performAnalysis(Class configuration) { FailureAnalysis analysis = this.analyzer.analyze(createFailure(configuration)); assertThat(analysis).isNotNull(); - System.out.println(analysis.getDescription()); return analysis; }