Search in sources :

Example 1 with NoopRequestLoggerProvider

use of org.apache.druid.server.log.NoopRequestLoggerProvider in project druid by druid-io.

the class QueryableModuleTest method testGetDefaultRequestLoggerProvider.

@Test
public void testGetDefaultRequestLoggerProvider() {
    Properties properties = new Properties();
    final Injector injector = makeInjector(properties);
    RequestLoggerProvider emittingRequestLoggerProvider = injector.getInstance(RequestLoggerProvider.class);
    Assert.assertTrue(emittingRequestLoggerProvider instanceof NoopRequestLoggerProvider);
    RequestLogger requestLogger = emittingRequestLoggerProvider.get();
    Assert.assertTrue(requestLogger instanceof NoopRequestLogger);
}
Also used : NoopRequestLoggerProvider(org.apache.druid.server.log.NoopRequestLoggerProvider) Injector(com.google.inject.Injector) RequestLoggerProvider(org.apache.druid.server.log.RequestLoggerProvider) EmittingRequestLoggerProvider(org.apache.druid.server.log.EmittingRequestLoggerProvider) NoopRequestLoggerProvider(org.apache.druid.server.log.NoopRequestLoggerProvider) EmittingRequestLogger(org.apache.druid.server.log.EmittingRequestLogger) NoopRequestLogger(org.apache.druid.server.log.NoopRequestLogger) RequestLogger(org.apache.druid.server.log.RequestLogger) NoopRequestLogger(org.apache.druid.server.log.NoopRequestLogger) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

Injector (com.google.inject.Injector)1 Properties (java.util.Properties)1 EmittingRequestLogger (org.apache.druid.server.log.EmittingRequestLogger)1 EmittingRequestLoggerProvider (org.apache.druid.server.log.EmittingRequestLoggerProvider)1 NoopRequestLogger (org.apache.druid.server.log.NoopRequestLogger)1 NoopRequestLoggerProvider (org.apache.druid.server.log.NoopRequestLoggerProvider)1 RequestLogger (org.apache.druid.server.log.RequestLogger)1 RequestLoggerProvider (org.apache.druid.server.log.RequestLoggerProvider)1 Test (org.junit.Test)1