mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
改变liteflowComponent测试用例包路径问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package com.yomahub.liteflow.test.liteflowcomponent;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno;
|
||||
|
||||
import com.yomahub.liteflow.core.FlowExecutor;
|
||||
import com.yomahub.liteflow.flow.LiteflowResponse;
|
||||
@@ -21,10 +21,10 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
* @since 2.5.10
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@TestPropertySource(value = "classpath:/liteflowComponent/application.properties")
|
||||
@TestPropertySource(value = "classpath:/lfCmpAnno/application.properties")
|
||||
@SpringBootTest(classes = LiteflowComponentSpringbootTest.class)
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan({"com.yomahub.liteflow.test.liteflowcomponent.cmp"})
|
||||
@ComponentScan({"com.yomahub.liteflow.test.lfCmpAnno.cmp"})
|
||||
public class LiteflowComponentSpringbootTest extends BaseTest {
|
||||
|
||||
@Autowired
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -0,0 +1 @@
|
||||
liteflow.rule-source=lfCmpAnno/flow.xml
|
||||
@@ -1 +0,0 @@
|
||||
liteflow.rule-source=liteflowComponent/flow.xml
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.yomahub.liteflow.test.liteflowcomponent;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno;
|
||||
|
||||
import com.yomahub.liteflow.core.FlowExecutor;
|
||||
import com.yomahub.liteflow.flow.LiteflowResponse;
|
||||
@@ -18,7 +18,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
* @since 2.5.10
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@ContextConfiguration("classpath:/liteflowcomponent/application.xml")
|
||||
@ContextConfiguration("classpath:/lfCmpAnno/application.xml")
|
||||
public class LiteflowComponentSpringTest extends BaseTest {
|
||||
|
||||
@Autowired
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -5,7 +5,7 @@
|
||||
* @email weenyc31@163.com
|
||||
* @Date 2020/4/1
|
||||
*/
|
||||
package com.yomahub.liteflow.test.liteflowcomponent.cmp;
|
||||
package com.yomahub.liteflow.test.lfCmpAnno.cmp;
|
||||
|
||||
import com.yomahub.liteflow.annotation.LiteflowComponent;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
@@ -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.liteflowcomponent.cmp" />
|
||||
<context:component-scan base-package="com.yomahub.liteflow.test.lfCmpAnno.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="liteflowcomponent/flow.xml"/>
|
||||
<property name="ruleSource" value="lfCmpAnno/flow.xml"/>
|
||||
</bean>
|
||||
|
||||
<bean id="flowExecutor" class="com.yomahub.liteflow.core.FlowExecutor">
|
||||
Reference in New Issue
Block a user