APISonar


org.neo4j.server.configuration.PropertyFileConfigurator.log

> org > neo4j > server > configuration > PropertyFileConfigurator > log
org APIs neo4j APIs server APIs configuration APIs PropertyFileConfigurator APIs log APIs

Example 1
public void shouldLogWarningAndContinueIfTuningFilePropertyDoesNotResolve() throws IOException
    {
        InMemoryAppender appender = new InMemoryAppender( PropertyFileConfigurator.log );

        NeoServer server = ServerBuilder.server()
                .withNonResolvableTuningFile()
                .build();
        server.start();

        assertThat( appender.toString(),
                containsString( String.format( "The specified file for database performance tuning properties [" ) ) );
        assertThat( appender.toString(), containsString( String.format( "] does not exist." ) ) );

        server.stop();
    }