You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/05/18 09:44:11 UTC

[incubator-streampipes] 01/02: [STREAMPIPES-360] Remove obsolete tests

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 <ri...@fzi.de>
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());