mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
补充测试用例
This commit is contained in:
@@ -25,10 +25,10 @@ import java.util.Set;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-implicit.properties")
|
||||
@SpringBootTest(classes = ImplicitSubFlowTest.class)
|
||||
@SpringBootTest(classes = ImplicitSubFlowSpringbootTest.class)
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan({"com.yomahub.liteflow.test.subflow.cmp2"})
|
||||
public class ImplicitSubFlowTest extends BaseTest {
|
||||
public class ImplicitSubFlowSpringbootTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -26,10 +26,10 @@ import javax.annotation.Resource;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-subInDifferentConfig1.properties")
|
||||
@SpringBootTest(classes = SubflowInDifferentConfigTest.class)
|
||||
@SpringBootTest(classes = SubflowInDifferentConfigSpringbootTest.class)
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan({"com.yomahub.liteflow.test.subflow.cmp1","com.yomahub.liteflow.test.subflow.cmp2"})
|
||||
public class SubflowInDifferentConfigTest extends BaseTest {
|
||||
public class SubflowInDifferentConfigSpringbootTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("f")
|
||||
|
||||
@@ -6,9 +6,7 @@ import com.yomahub.liteflow.entity.data.DefaultSlot;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("g")
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("h")
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("m")
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Set;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@ContextConfiguration("classpath:/subflow/application-implicit.xml")
|
||||
public class ImplicitSubFlowTest extends BaseTest {
|
||||
public class ImplicitSubFlowSpringTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -22,7 +22,7 @@ import javax.annotation.Resource;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@ContextConfiguration("classpath:/subflow/application-subInDifferentConfig1.xml")
|
||||
public class SubflowInDifferentConfigTest extends BaseTest {
|
||||
public class SubflowInDifferentConfigSpringTest extends BaseTest {
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("f")
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.yomahub.liteflow.entity.data.DefaultSlot;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("g")
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("h")
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowTest.RUN_TIME_SLOT;
|
||||
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringTest.RUN_TIME_SLOT;
|
||||
|
||||
|
||||
@Component("m")
|
||||
|
||||
Reference in New Issue
Block a user