Search in sources :

Example 1 with ShutdownHandler

use of com.amazon.dataprepper.pipeline.server.ShutdownHandler in project data-prepper by opensearch-project.

the class DataPrepperServerConfigurationTest method testShutdownHandlerIsCreated.

@Test
public void testShutdownHandlerIsCreated() {
    final DataPrepper dataPrepper = mock(DataPrepper.class);
    final ShutdownHandler handler = serverConfiguration.shutdownHandler(dataPrepper);
    assertThat(handler, isA(ShutdownHandler.class));
}
Also used : DataPrepper(com.amazon.dataprepper.DataPrepper) ShutdownHandler(com.amazon.dataprepper.pipeline.server.ShutdownHandler) Test(org.junit.jupiter.api.Test)

Aggregations

DataPrepper (com.amazon.dataprepper.DataPrepper)1 ShutdownHandler (com.amazon.dataprepper.pipeline.server.ShutdownHandler)1 Test (org.junit.jupiter.api.Test)1