You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/10/11 15:01:21 UTC

[incubator-streampipes-extensions] branch dev updated: [hotfix] Change failing tests

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new 7508138  [hotfix] Change failing tests
7508138 is described below

commit 75081389ea255a3454a9faba3d805f9d6e9b8d1e
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Mon Oct 11 17:00:55 2021 +0200

    [hotfix] Change failing tests
---
 .../connect/adapters/generic/UtilTest.java            | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/streampipes-connect-adapters/src/test/java/org/apache/streampipes/connect/adapters/generic/UtilTest.java b/streampipes-connect-adapters/src/test/java/org/apache/streampipes/connect/adapters/generic/UtilTest.java
index 6d0f715..3c1d715 100644
--- a/streampipes-connect-adapters/src/test/java/org/apache/streampipes/connect/adapters/generic/UtilTest.java
+++ b/streampipes-connect-adapters/src/test/java/org/apache/streampipes/connect/adapters/generic/UtilTest.java
@@ -17,7 +17,6 @@
  */
 package org.apache.streampipes.connect.adapters.generic;
 
-import org.junit.Test;
 import org.apache.streampipes.connect.adapter.preprocessing.Util;
 import org.apache.streampipes.model.SpDataSet;
 import org.apache.streampipes.model.SpDataStream;
@@ -25,13 +24,12 @@ import org.apache.streampipes.model.connect.adapter.GenericAdapterDescription;
 import org.apache.streampipes.model.connect.adapter.GenericAdapterSetDescription;
 import org.apache.streampipes.model.connect.adapter.GenericAdapterStreamDescription;
 import org.apache.streampipes.model.schema.EventSchema;
+import org.junit.Test;
 
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 public class UtilTest {
 
-
     @Test
     public void getEventSchemaStreamDescription() {
         GenericAdapterStreamDescription adapter = new GenericAdapterStreamDescription();
@@ -42,14 +40,6 @@ public class UtilTest {
     }
 
     @Test
-    public void getEventSchemaNullStreamDescription() {
-        GenericAdapterStreamDescription adapter = new GenericAdapterStreamDescription();
-        adapter.setDataStream(new SpDataStream());
-
-        assertNull(Util.getEventSchema((GenericAdapterDescription) adapter));
-    }
-
-    @Test
     public void getEventSchemaSetDescription() {
         GenericAdapterSetDescription adapter = new GenericAdapterSetDescription();
         adapter.setDataSet(new SpDataSet());
@@ -58,11 +48,4 @@ public class UtilTest {
         assertTrue(Util.getEventSchema((GenericAdapterDescription) adapter) instanceof EventSchema);
     }
 
-    @Test
-    public void getEventSchemaNullSetDescription() {
-        GenericAdapterSetDescription adapter = new GenericAdapterSetDescription();
-        adapter.setDataSet(new SpDataSet());
-
-        assertNull(Util.getEventSchema((GenericAdapterDescription) adapter));
-    }
 }
\ No newline at end of file