修改单元测试路径名

This commit is contained in:
tangkc 2022-07-12 22:33:51 +08:00
parent dc3226cd73
commit 98683157aa
33 changed files with 45 additions and 45 deletions

View File

@ -1,4 +1,4 @@
package com.yomahub.liteflow.test.note;
package com.yomahub.liteflow.test.comments;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
@ -16,10 +16,10 @@ import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@RunWith(SpringRunner.class)
@TestPropertySource(value = "classpath:/note/application.properties")
@TestPropertySource(value = "classpath:/comments/application.properties")
@SpringBootTest(classes = LiteflowNodeELSpringbootTest.class)
@EnableAutoConfiguration
@ComponentScan({"com.yomahub.liteflow.test.note.cmp"})
@ComponentScan({"com.yomahub.liteflow.test.comments.cmp"})
public class LiteflowNodeELSpringbootTest extends BaseTest {
@Resource

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowMethod;

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import cn.hutool.core.thread.ThreadUtil;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import cn.hutool.core.thread.ThreadUtil;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;

View File

@ -0,0 +1,4 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.comments;

View File

@ -1,4 +0,0 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.note;

View File

@ -0,0 +1 @@
liteflow.rule-source=comments/flow.el.xml

View File

@ -1,4 +1,4 @@
package com.yomahub.liteflow.test.note;
package com.yomahub.liteflow.test.comments;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
@ -20,7 +20,7 @@ public class LiteflowNodeTest extends BaseTest {
@BeforeClass
public static void init(){
LiteflowConfig config = new LiteflowConfig();
config.setRuleSource("note/flow.el.xml");
config.setRuleSource("comments/flow.el.xml");
flowExecutor = FlowExecutorHolder.loadInstance(config);
}

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -6,7 +6,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -6,7 +6,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -0,0 +1,4 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.comments;

View File

@ -1,4 +0,0 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.note;

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<nodes>
<node id="a" class="com.yomahub.liteflow.test.note.cmp.ACmp"/>
<node id="b" class="com.yomahub.liteflow.test.note.cmp.BCmp"/>
<node id="c" class="com.yomahub.liteflow.test.note.cmp.CCmp"/>
<node id="a" class="com.yomahub.liteflow.test.comments.cmp.ACmp"/>
<node id="b" class="com.yomahub.liteflow.test.comments.cmp.BCmp"/>
<node id="c" class="com.yomahub.liteflow.test.comments.cmp.CCmp"/>
</nodes>
<chain name="chain1">

View File

@ -1,4 +1,4 @@
package com.yomahub.liteflow.test.note;
package com.yomahub.liteflow.test.comments;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
@ -16,10 +16,10 @@ import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@RunWith(SpringRunner.class)
@TestPropertySource(value = "classpath:/note/application.properties")
@TestPropertySource(value = "classpath:/comments/application.properties")
@SpringBootTest(classes = LiteflowNodeELSpringbootTest.class)
@EnableAutoConfiguration
@ComponentScan({"com.yomahub.liteflow.test.note.cmp"})
@ComponentScan({"com.yomahub.liteflow.test.comments.cmp"})
public class LiteflowNodeELSpringbootTest extends BaseTest {
@Resource

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowMethod;

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowMethod;

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowMethod;

View File

@ -0,0 +1,4 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.comments;

View File

@ -1,4 +0,0 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.note;

View File

@ -0,0 +1 @@
liteflow.rule-source=comments/flow.el.xml

View File

@ -1 +0,0 @@
liteflow.rule-source=note/flow.el.xml

View File

@ -1,4 +1,4 @@
package com.yomahub.liteflow.test.note;
package com.yomahub.liteflow.test.comments;
import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.core.FlowExecutor;
@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@RunWith(SpringRunner.class)
@ContextConfiguration("classpath:/note/application.xml")
@ContextConfiguration("classpath:/comments/application.xml")
public class LiteflowNodeELSpringbootTest extends BaseTest {
@Resource

View File

@ -5,7 +5,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -6,7 +6,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -6,7 +6,7 @@
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.note.cmp;
package com.yomahub.liteflow.test.comments.cmp;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

View File

@ -0,0 +1,4 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.comments;

View File

@ -1,4 +0,0 @@
/**
* 测试注释
*/
package com.yomahub.liteflow.test.note;

View File

@ -7,14 +7,14 @@
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<context:component-scan base-package="com.yomahub.liteflow.test.note.cmp" />
<context:component-scan base-package="com.yomahub.liteflow.test.comments.cmp" />
<bean id="springAware" class="com.yomahub.liteflow.spi.spring.SpringAware"/>
<bean class="com.yomahub.liteflow.spring.ComponentScanner"/>
<bean id="liteflowConfig" class="com.yomahub.liteflow.property.LiteflowConfig">
<property name="ruleSource" value="note/flow.el.xml"/>
<property name="ruleSource" value="comments/flow.el.xml"/>
</bean>
<bean id="flowExecutor" class="com.yomahub.liteflow.core.FlowExecutor">