Clean up console output for spring-beans tests

This commit is contained in:
Chris Beams
2013-02-26 12:33:05 +01:00
parent da034eb020
commit 3100d89d07
3 changed files with 2 additions and 14 deletions

View File

@@ -591,7 +591,6 @@ public class DefaultListableBeanFactoryTests {
fail("Should throw exception on invalid property");
}
catch (BeanCreationException ex) {
ex.printStackTrace();
assertTrue(ex.getCause() instanceof NotWritablePropertyException);
NotWritablePropertyException cause = (NotWritablePropertyException) ex.getCause();
// expected

View File

@@ -29,7 +29,6 @@ import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.core.io.Resource;
import org.springframework.tests.sample.beans.TestBean;
/**
* @author Rob Harrop
* @author Chris Beams
@@ -78,7 +77,6 @@ public final class CustomProblemReporterTests {
@Override
public void error(Problem problem) {
System.out.println(problem);
this.errors.add(problem);
}
@@ -88,7 +86,6 @@ public final class CustomProblemReporterTests {
@Override
public void warning(Problem problem) {
System.out.println(problem);
this.warnings.add(problem);
}
}