List of usage examples for org.springframework.beans.factory.parsing FailFastProblemReporter warning
@Override public void warning(Problem problem)
From source file:org.springframework.beans.factory.parsing.FailFastProblemReporterTests.java
@Test public void testWarn() throws Exception { Problem problem = new Problem("VGER", new Location(new DescriptiveResource("here")), null, new IllegalArgumentException()); Log log = mock(Log.class); FailFastProblemReporter reporter = new FailFastProblemReporter(); reporter.setLogger(log);/*from w ww . jav a 2 s . co m*/ reporter.warning(problem); verify(log).warn(any(), isA(IllegalArgumentException.class)); }