修改测试用例
This commit is contained in:
parent
a2472035af
commit
1aef78243a
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
@ -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());
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
|
||||
|
||||
liteflow.rule-source: "demo/flow.xml"
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<flow>
|
||||
<chain name="chain1">
|
||||
THEN(a, b, c);
|
||||
</chain>
|
||||
</flow>
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue