This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit e3a10e8cd9568260013eaca090fce055db55287d Author: Dominik Riemer <[email protected]> AuthorDate: Tue May 18 11:42:23 2021 +0200 [STREAMPIPES-360] Remove obsolete tests --- .../master/management/WorkerRestClientTest.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/streampipes-connect-container-master/src/test/java/org/apache/streampipes/connect/container/master/management/WorkerRestClientTest.java b/streampipes-connect-container-master/src/test/java/org/apache/streampipes/connect/container/master/management/WorkerRestClientTest.java index e87f012..5999b60 100644 --- a/streampipes-connect-container-master/src/test/java/org/apache/streampipes/connect/container/master/management/WorkerRestClientTest.java +++ b/streampipes-connect-container-master/src/test/java/org/apache/streampipes/connect/container/master/management/WorkerRestClientTest.java @@ -49,25 +49,6 @@ public class WorkerRestClientTest { } @Test - public void invokeStreamAdapterSuccess() throws Exception { - doNothing().when(WorkerRestClient.class, "startAdapter", anyString(), any()); - when(WorkerRestClient.class, "invokeStreamAdapter", anyString(), any()).thenCallRealMethod(); - - WorkerRestClient.invokeStreamAdapter("", ""); - - verifyStatic(WorkerRestClient.class, times(1)); - WorkerRestClient.startAdapter(eq("worker/stream/invoke"), any()); - } - - @Test(expected = AdapterException.class) - public void invokeStreamAdapterFail() throws Exception { - doThrow(new AdapterException()).when(WorkerRestClient.class, "startAdapter", anyString(), any()); - when(WorkerRestClient.class, "invokeStreamAdapter", anyString(), any()).thenCallRealMethod(); - - WorkerRestClient.invokeStreamAdapter("", ""); - } - - @Test public void stopStreamAdapterSuccess() throws Exception { doNothing().when(WorkerRestClient.class, "stopAdapter", anyString(), any(), anyString());
