Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbose2k21 committed Jan 8, 2025
1 parent 3c662fd commit 4795d03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import javax.ws.rs.HttpMethod;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.util.ArrayList;
import java.util.List;
import java.io.InputStream;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class DataPrepperServerTest {
@Mock
private GetPipelinesHandler getPipelinesHandler;

@Mock
private UpdatePipelineConfigHandler updatePipelineConfigHandler;

@Mock
private PrometheusMeterRegistry prometheusMeterRegistry;

Expand All @@ -65,8 +68,8 @@ public class DataPrepperServerTest {

@AfterEach
public void tearDown() {
verifyNoMoreInteractions(server, httpServerProvider, listPipelinesHandler, shutdownHandler,
prometheusMeterRegistry, authenticator, context, socketAddress);
verifyNoMoreInteractions(server, httpServerProvider, listPipelinesHandler, updatePipelineConfigHandler,
shutdownHandler, prometheusMeterRegistry, authenticator, context, socketAddress);
}

@Test
Expand Down Expand Up @@ -161,7 +164,9 @@ private void verifyServerStart() {
verify(socketAddress).getPort();
}

private DataPrepperServer createObjectUnderTest(final PrometheusMeterRegistry prometheusMeterRegistry, final Authenticator authenticator) {
return new DataPrepperServer(httpServerProvider, listPipelinesHandler, shutdownHandler, getPipelinesHandler, prometheusMeterRegistry, authenticator);
private DataPrepperServer createObjectUnderTest(final PrometheusMeterRegistry prometheusMeterRegistry,
final Authenticator authenticator) {
return new DataPrepperServer(httpServerProvider, listPipelinesHandler, updatePipelineConfigHandler,
shutdownHandler, getPipelinesHandler, prometheusMeterRegistry, authenticator);
}
}

0 comments on commit 4795d03

Please sign in to comment.