APISonar


org.neo4j.server.preflight.PreFlightTasks.log

> org > neo4j > server > preflight > PreFlightTasks > log
org APIs neo4j APIs server APIs preflight APIs PreFlightTasks APIs log APIs

Example 1
public void shouldLogFailedRule()
    {
        PreFlightTasks check = new PreFlightTasks( getWithOneFailingRule() );
        InMemoryAppender appender = new InMemoryAppender( PreFlightTasks.log );
        check.run();

        // Previously we tested on "SEVERE: blah blah" but that's a string
        // depending
        // on the regional settings of the OS.
        assertThat( appender.toString(), containsString( ": blah blah" ) );
    }