mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
【更新】清理 liteflow-testcase-el-solon 组件扫描的代码 (Solon 的单测会自动扫包下的组件)
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
solon 会有部分的全局变量。
|
||||
|
||||
在当前测试场景下,不适合一次性跑全部单测。只能一个个目录跑
|
||||
@@ -20,7 +20,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author ssss
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/asyncNode/application.properties")
|
||||
@TestPropertySource("classpath:/asyncNode/application.properties")
|
||||
public class AsyncNodeELSpringbootTest extends BaseTest {
|
||||
@Inject
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/base/application.properties")
|
||||
@TestPropertySource("classpath:/base/application.properties")
|
||||
public class BaseELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,14 +7,12 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
|
||||
//基于builder模式的单元测试
|
||||
//这里测试的是通过spring去扫描,但是通过代码去构建chain的用例
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.builder.cmp2"})
|
||||
public class BuilderELSpringbootTest2 extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/cmpData/application.properties")
|
||||
@TestPropertySource("classpath:/cmpData/application.properties")
|
||||
public class CmpDataELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.10
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/cmpRetry/application.properties")
|
||||
@TestPropertySource("classpath:/cmpRetry/application.properties")
|
||||
public class LiteflowRetryELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -16,7 +15,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/complex/application1.properties")
|
||||
@TestPropertySource("classpath:/complex/application1.properties")
|
||||
public class ComplexELSpringbootTest1 extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -16,7 +15,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/complex/application2.properties")
|
||||
@TestPropertySource("classpath:/complex/application2.properties")
|
||||
public class ComplexELSpringbootTest2 extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,7 +19,7 @@ import org.slf4j.LoggerFactory;
|
||||
* @author donguo.tao
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/component/application.properties")
|
||||
@TestPropertySource("classpath:/component/application.properties")
|
||||
public class FlowExecutorELSpringbootTest extends BaseTest {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FlowExecutorELSpringbootTest.class);
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,8 +19,7 @@ import org.slf4j.LoggerFactory;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/customNodes/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.customNodes.domain"})
|
||||
@TestPropertySource("classpath:/customNodes/application.properties")
|
||||
public class CustomNodesELSpringbootTest extends BaseTest {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -22,7 +21,6 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/customWhenThreadPool/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.customWhenThreadPool.cmp"})
|
||||
public class CustomWhenThreadPoolELSpringbootTest extends BaseTest {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.7.1
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/event/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.event.cmp"})
|
||||
@TestPropertySource("classpath:/event/application.properties")
|
||||
public class EventELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -10,7 +10,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.core.AopContext;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
@@ -24,7 +23,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/exception/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.exception.cmp"})
|
||||
public class Exception2ELSpringBootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,8 +18,7 @@ import java.util.concurrent.Future;
|
||||
* @since 2.6.13
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/execute2Future/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.execute2Future.cmp"})
|
||||
@TestPropertySource("classpath:/execute2Future/application.properties")
|
||||
public class Executor2FutureELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -17,8 +16,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/getChainName/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.getChainName.cmp"})
|
||||
@TestPropertySource("classpath:/getChainName/application.properties")
|
||||
public class GetChainNameELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -16,7 +15,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/ifelse/application.properties")
|
||||
@TestPropertySource("classpath:/ifelse/application.properties")
|
||||
public class IfELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.10
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/lfCmpAnno/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.lfCmpAnno.cmp"})
|
||||
@TestPropertySource("classpath:/lfCmpAnno/application.properties")
|
||||
public class LiteflowComponentELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -17,8 +16,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/loop/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.loop.cmp"})
|
||||
@TestPropertySource("classpath:/loop/application.properties")
|
||||
public class LoopELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -9,7 +9,6 @@ import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,8 +19,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/monitor/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.monitor.cmp"})
|
||||
@TestPropertySource("classpath:/monitor/application.properties")
|
||||
public class MonitorELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -9,7 +9,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,8 +19,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/multiContext/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.multiContext.cmp"})
|
||||
@TestPropertySource("classpath:/multiContext/application.properties")
|
||||
public class MultiContextELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,7 +18,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/multipleType/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.multipleType.cmp"})
|
||||
public class LiteflowMultipleTypeELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.6
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/nullParam/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.nullParam.cmp"})
|
||||
@TestPropertySource("classpath:/nullParam/application.properties")
|
||||
public class NullParamELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,7 +17,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/parsecustom/application-custom-json.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.parsecustom.cmp"})
|
||||
public class CustomParserJsonELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,7 +18,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/parsecustom/application-custom-xml.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.parsecustom.cmp","com.yomahub.liteflow.test.parsecustom.bean"})
|
||||
public class CustomParserXmlELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,7 +18,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/parsecustom/application-custom-yml.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.parsecustom.cmp","com.yomahub.liteflow.test.parsecustom.bean"})
|
||||
public class CustomParserYmlELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/preAndFinally/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.preAndFinally.cmp"})
|
||||
@TestPropertySource("classpath:/preAndFinally/application.properties")
|
||||
public class PreAndFinallyELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,8 +18,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/privateDelivery/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.privateDelivery.cmp"})
|
||||
@TestPropertySource("classpath:/privateDelivery/application.properties")
|
||||
public class PrivateDeliveryELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -9,7 +9,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,8 +19,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/refreshRule/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.refreshRule.cmp"})
|
||||
@TestPropertySource("classpath:/refreshRule/application.properties")
|
||||
public class RefreshRuleELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -17,8 +16,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/reload/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.reload.cmp"})
|
||||
@TestPropertySource("classpath:/reload/application.properties")
|
||||
public class ReloadELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.4
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/removeChain/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.removeChain.cmp"})
|
||||
@TestPropertySource("classpath:/removeChain/application.properties")
|
||||
public class RemoveChainELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -15,7 +14,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author tangkc
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/requestId/application.properties")
|
||||
@TestPropertySource("classpath:/requestId/application.properties")
|
||||
public class LiteflowRequestIdELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -22,7 +21,7 @@ import java.util.Set;
|
||||
* @author justin.xu
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-implicit.properties")
|
||||
@TestPropertySource("classpath:/subflow/application-implicit.properties")
|
||||
public class ImplicitSubFlowELSpringbootTest extends BaseTest {
|
||||
@Inject
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.core.AopContext;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,7 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author justin.xu
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-xml.properties")
|
||||
@TestPropertySource("classpath:/subflow/application-xml.properties")
|
||||
public class SubflowXMLELSpringBootTest extends BaseTest {
|
||||
@Inject
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,7 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author justin.xu
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-yml.properties")
|
||||
@TestPropertySource("classpath:/subflow/application-yml.properties")
|
||||
public class SubflowYmlELSpringBootTest extends BaseTest {
|
||||
@Inject
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author justin.xu
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/subflow/application-json.properties")
|
||||
@TestPropertySource("classpath:/subflow/application-json.properties")
|
||||
public class SubflowJsonELSpringBootTest extends BaseTest {
|
||||
@Inject
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -16,8 +15,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/substituteNode/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.substituteNode.cmp"})
|
||||
@TestPropertySource("classpath:/substituteNode/application.properties")
|
||||
public class SubstituteSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -17,7 +16,6 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/switchcase/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.switchcase.cmp"})
|
||||
public class SwitchELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,8 +18,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/tag/application-json.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.tag.cmp"})
|
||||
@TestPropertySource("classpath:/tag/application-json.properties")
|
||||
public class NodeTagELSpringbootJsonTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -19,8 +18,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/tag/application-xml.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.tag.cmp"})
|
||||
@TestPropertySource("classpath:/tag/application-xml.properties")
|
||||
public class NodeTagELSpringbootXmlTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -18,8 +17,7 @@ import org.noear.solon.test.annotation.TestPropertySource;
|
||||
* @since 2.6.3
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource(value = "classpath:/useTTLInWhen/application.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.useTTLInWhen.cmp"})
|
||||
@TestPropertySource("classpath:/useTTLInWhen/application.properties")
|
||||
public class UseTTLInWhenELSpringbootTest extends BaseTest {
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -7,7 +7,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -21,7 +20,6 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/whenTimeOut/application1.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.whenTimeOut.cmp"})
|
||||
public class WhenTimeOutELSpringbootTest1 extends BaseTest {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@@ -6,7 +6,6 @@ import com.yomahub.liteflow.test.BaseTest;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.noear.solon.annotation.Import;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
import org.noear.solon.test.SolonJUnit4ClassRunner;
|
||||
import org.noear.solon.test.annotation.TestPropertySource;
|
||||
@@ -20,7 +19,6 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
@RunWith(SolonJUnit4ClassRunner.class)
|
||||
@TestPropertySource("classpath:/whenTimeOut/application2.properties")
|
||||
@Import(scanPackages = {"com.yomahub.liteflow.test.whenTimeOut.cmp"})
|
||||
public class WhenTimeOutELSpringbootTest2 extends BaseTest {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
Reference in New Issue
Block a user