修改单元测试路径名
This commit is contained in:
parent
dc3226cd73
commit
98683157aa
|
@ -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
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.comments;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.note;
|
|
@ -0,0 +1 @@
|
|||
liteflow.rule-source=comments/flow.el.xml
|
|
@ -1 +0,0 @@
|
|||
liteflow.rule-source=note/flow.el.xml
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.comments;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.note;
|
|
@ -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">
|
|
@ -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
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.comments;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.note;
|
|
@ -0,0 +1 @@
|
|||
liteflow.rule-source=comments/flow.el.xml
|
|
@ -1 +0,0 @@
|
|||
liteflow.rule-source=note/flow.el.xml
|
|
@ -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
|
|
@ -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;
|
|
@ -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;
|
|
@ -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;
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.comments;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* 测试注释
|
||||
*/
|
||||
package com.yomahub.liteflow.test.note;
|
|
@ -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">
|
Loading…
Reference in New Issue