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 2020/01/22 20:14:20 UTC

[incubator-streampipes] branch dev updated: Remove unused 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


The following commit(s) were added to refs/heads/dev by this push:
     new f32205c  Remove unused tests
f32205c is described below

commit f32205cb555bff945bfe21ebd28daeb82e52ae79
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed Jan 22 21:14:02 2020 +0100

    Remove unused tests
---
 .../sdk/builder/TestProcessingElementBuilder.java  | 46 ----------------------
 .../sdk/builder/TestSpDataStreamBuilder.java       | 45 ---------------------
 2 files changed, 91 deletions(-)

diff --git a/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestProcessingElementBuilder.java b/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestProcessingElementBuilder.java
deleted file mode 100644
index ff61d69..0000000
--- a/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestProcessingElementBuilder.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.sdk.builder;
-
-import org.junit.Test;
-import org.apache.streampipes.model.graph.DataProcessorDescription;
-import org.apache.streampipes.model.schema.PropertyScope;
-import org.apache.streampipes.sdk.helpers.EpRequirements;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.helpers.OutputStrategies;
-
-public class TestProcessingElementBuilder {
-
-    @Test
-    public void testProcessingElementBuilderGeneration() {
-
-        DataProcessorDescription testDescription = ProcessingElementBuilder
-                .create("test-element", "title", "description")
-                .iconUrl("url")
-                .requiredTextParameter("requiredText", "requiredTextLabel", "requiredTextDescription")
-                .requiredIntegerParameter("requiredInteger", "requiredIntegerLabel", "requiredIntegerDescription")
-                .requiredFloatParameter("requiredFloat", "requiredFloatLabel", "requiredFloatDescription")
-                .requiredStream(StreamRequirementsBuilder.create().requiredProperty
-                        (EpRequirements.numberReq()).requiredPropertyWithUnaryMapping
-                        (EpRequirements.booleanReq(), Labels.from("internalName", "label",
-                                "description"), PropertyScope.NONE).build())
-                .outputStrategy(OutputStrategies.custom())
-                .build();
-    }
-}
diff --git a/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestSpDataStreamBuilder.java b/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestSpDataStreamBuilder.java
deleted file mode 100644
index ee677bd..0000000
--- a/streampipes-sdk/src/test/java/org/apache/streampipes/sdk/builder/TestSpDataStreamBuilder.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.sdk.builder;
-
-import org.apache.streampipes.model.SpDataStream;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.vocabulary.MhWirth;
-import org.apache.streampipes.sdk.helpers.EpProperties;
-import org.apache.streampipes.sdk.helpers.Groundings;
-import org.apache.streampipes.sdk.utils.Datatypes;
-import org.junit.Test;
-
-public class TestSpDataStreamBuilder {
-
-    @Test
-    public void testDataStreamBuilder() {
-
-        SpDataStream stream = new DataStreamBuilder("test", "label", "description")
-                .format(Groundings.jsonFormat())
-                .protocol(Groundings.kafkaGrounding("ipe-koi15.fzi.de", 9092, "abc"))
-                .property(EpProperties.integerEp(Labels.empty(), "randomNumber", MhWirth.DrillingStatus))
-                .property(PrimitivePropertyBuilder
-                        .create(Datatypes.String, "randomLetter")
-                .label("label")
-                .description("description")
-                .valueSpecification(0.0f, 100.0f, 1.0f).build())
-                .build();
-    }
-}