Example usage for org.springframework.beans.factory.parsing FailFastProblemReporter warning

List of usage examples for org.springframework.beans.factory.parsing FailFastProblemReporter warning

Introduction

In this page you can find the example usage for org.springframework.beans.factory.parsing FailFastProblemReporter warning.

Prototype

@Override
public void warning(Problem problem) 

Source Link

Document

Writes the supplied Problem to the Log at WARN level.

Usage

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));
}