Search in sources :

Example 1 with LoggingSetUp

use of com.hotels.styx.startup.StyxServerComponents.LoggingSetUp in project styx by ExpediaGroup.

the class StyxServerComponentsTest method setsUpLoggingOnBuild.

@Test
public void setsUpLoggingOnBuild() {
    LoggingSetUp loggingSetUp = mock(LoggingSetUp.class);
    new StyxServerComponents.Builder().registry(new MicrometerRegistry(new CompositeMeterRegistry())).styxConfig(new StyxConfig()).loggingSetUp(loggingSetUp).build();
    verify(loggingSetUp).setUp(any(Environment.class));
}
Also used : CompositeMeterRegistry(io.micrometer.core.instrument.composite.CompositeMeterRegistry) MicrometerRegistry(com.hotels.styx.api.MicrometerRegistry) StyxConfig(com.hotels.styx.StyxConfig) LoggingSetUp(com.hotels.styx.startup.StyxServerComponents.LoggingSetUp) Environment(com.hotels.styx.Environment) Test(org.junit.jupiter.api.Test)

Aggregations

Environment (com.hotels.styx.Environment)1 StyxConfig (com.hotels.styx.StyxConfig)1 MicrometerRegistry (com.hotels.styx.api.MicrometerRegistry)1 LoggingSetUp (com.hotels.styx.startup.StyxServerComponents.LoggingSetUp)1 CompositeMeterRegistry (io.micrometer.core.instrument.composite.CompositeMeterRegistry)1 Test (org.junit.jupiter.api.Test)1