|
@@ -1,11 +1,8 @@
|
|
|
package com.yomahub.liteflow.test.privateDelivery;
|
|
|
|
|
|
-import cn.hutool.core.util.ReflectUtil;
|
|
|
import com.yomahub.liteflow.core.FlowExecutor;
|
|
|
-import com.yomahub.liteflow.entity.data.DataBus;
|
|
|
import com.yomahub.liteflow.entity.data.DefaultSlot;
|
|
|
import com.yomahub.liteflow.entity.data.LiteflowResponse;
|
|
|
-import com.yomahub.liteflow.entity.data.Slot;
|
|
|
import com.yomahub.liteflow.test.BaseTest;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Test;
|
|
@@ -17,14 +14,7 @@ import org.springframework.test.context.TestPropertySource;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import java.lang.reflect.Field;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
import java.util.Set;
|
|
|
-import java.util.concurrent.ConcurrentLinkedQueue;
|
|
|
-import java.util.concurrent.ExecutorService;
|
|
|
-import java.util.concurrent.Executors;
|
|
|
-import java.util.concurrent.Future;
|
|
|
|
|
|
/**
|
|
|
* springboot环境下隐私投递的测试
|
|
@@ -33,16 +23,16 @@ import java.util.concurrent.Future;
|
|
|
*/
|
|
|
@RunWith(SpringRunner.class)
|
|
|
@TestPropertySource(value = "classpath:/privateDelivery/application.properties")
|
|
|
-@SpringBootTest(classes = PirvateDeliverySpringbootTest.class)
|
|
|
+@SpringBootTest(classes = PrivateDeliverySpringbootTest.class)
|
|
|
@EnableAutoConfiguration
|
|
|
@ComponentScan({"com.yomahub.liteflow.test.privateDelivery.cmp"})
|
|
|
-public class PirvateDeliverySpringbootTest extends BaseTest {
|
|
|
+public class PrivateDeliverySpringbootTest extends BaseTest {
|
|
|
|
|
|
@Resource
|
|
|
private FlowExecutor flowExecutor;
|
|
|
|
|
|
@Test
|
|
|
- public void testSpringboot() throws Exception{
|
|
|
+ public void testPrivateDelivery() throws Exception{
|
|
|
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain1", "arg");
|
|
|
Set<Integer> set = response.getSlot().getData("testSet");
|
|
|
Assert.assertTrue(response.isSuccess());
|