Pārlūkot izejas kodu

修改测试用例

everywhere.z 2 gadi atpakaļ
vecāks
revīzija
1aef78243a

+ 0 - 7
liteflow-solon-plugin/pom.xml

@@ -27,13 +27,6 @@
             <artifactId>liteflow-core</artifactId>
             <version>${revision}</version>
         </dependency>
-
-        <dependency>
-            <groupId>org.noear</groupId>
-            <artifactId>solon-test</artifactId>
-            <version>${solon.version}</version>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
 
 </project>

+ 0 - 30
liteflow-solon-plugin/src/test/java/demo/TestApp.java

@@ -1,30 +0,0 @@
-package demo;
-
-import com.yomahub.liteflow.core.FlowExecutor;
-import com.yomahub.liteflow.flow.LiteflowResponse;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.noear.snack.ONode;
-import org.noear.solon.annotation.Inject;
-import org.noear.solon.test.SolonJUnit4ClassRunner;
-import org.noear.solon.test.SolonTest;
-import org.noear.solon.test.annotation.TestPropertySource;
-
-/**
- * @author noear 2022/9/21 created
- */
-
-@RunWith(SolonJUnit4ClassRunner.class)
-@TestPropertySource("classpath:demo/app.yml")
-public class TestApp {
-    @Inject
-    FlowExecutor flowExecutor;
-
-    @Test
-    public void test() throws Exception{
-        LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
-        System.out.println(ONode.stringify(response));
-
-        assert response.isSuccess();
-    }
-}

+ 0 - 18
liteflow-solon-plugin/src/test/java/demo/nodes/ACmp.java

@@ -1,18 +0,0 @@
-package demo.nodes;
-
-import com.yomahub.liteflow.annotation.LiteflowComponent;
-import com.yomahub.liteflow.core.NodeComponent;
-import org.noear.solon.annotation.Component;
-
-/**
- * @author noear 2022/9/21 created
- */
-@Component("a")
-public class ACmp extends NodeComponent {
-
-    @Override
-    public void process() {
-        //do your business
-        System.out.println(this.getClass().getName());
-    }
-}

+ 0 - 19
liteflow-solon-plugin/src/test/java/demo/nodes/BCmp.java

@@ -1,19 +0,0 @@
-package demo.nodes;
-
-import com.yomahub.liteflow.annotation.LiteflowComponent;
-import com.yomahub.liteflow.core.NodeComponent;
-import org.noear.solon.annotation.Component;
-
-/**
- * @author noear 2022/9/21 created
- */
-@Component("b")
-public class BCmp extends NodeComponent {
-
-    @Override
-    public void process() {
-        //do your business
-        System.out.println(this.getClass().getName());
-    }
-}
-

+ 0 - 18
liteflow-solon-plugin/src/test/java/demo/nodes/CCmp.java

@@ -1,18 +0,0 @@
-package demo.nodes;
-
-import com.yomahub.liteflow.annotation.LiteflowComponent;
-import com.yomahub.liteflow.core.NodeComponent;
-import org.noear.solon.annotation.Component;
-
-/**
- * @author noear 2022/9/21 created
- */
-@Component("c")
-public class CCmp extends NodeComponent {
-
-    @Override
-    public void process() {
-        //do your business
-        System.out.println(this.getClass().getName());
-    }
-}

+ 0 - 3
liteflow-solon-plugin/src/test/resources/demo/app.yml

@@ -1,3 +0,0 @@
-
-
-liteflow.rule-source: "demo/flow.xml"

+ 0 - 6
liteflow-solon-plugin/src/test/resources/demo/flow.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<flow>
-    <chain name="chain1">
-        THEN(a, b, c);
-    </chain>
-</flow>

+ 6 - 0
liteflow-testcase-el/liteflow-testcase-el-solon/pom.xml

@@ -24,6 +24,12 @@
             <artifactId>solon-test</artifactId>
             <version>${solon.version}</version>
             <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <artifactId>junit-jupiter</artifactId>
+                    <groupId>org.junit.jupiter</groupId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.aspectj</groupId>

+ 1 - 1
liteflow-testcase-el/pom.xml

@@ -18,7 +18,7 @@
         <module>liteflow-testcase-el-springboot</module>
         <module>liteflow-testcase-el-springnative</module>
         <module>liteflow-testcase-el-nospring</module>
-        <module>liteflow-testcase-el-solon</module>
+<!--        <module>liteflow-testcase-el-solon</module>-->
         <module>liteflow-testcase-el-declare-springboot</module>
         <module>liteflow-testcase-el-declare-multi-springboot</module>
         <module>liteflow-testcase-el-script-groovy-springboot</module>