增加单元测试模块

This commit is contained in:
bryan31
2021-03-30 13:49:53 +08:00
parent 225d3f12b7
commit 1735c95cd1
8 changed files with 23 additions and 21 deletions

View File

@@ -5,13 +5,19 @@ import com.yomahub.liteflow.entity.data.LiteflowResponse;
import com.yomahub.liteflow.entity.data.Slot;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = TestRunner.class)
@ActiveProfiles("aop")
@SpringBootTest(classes = LiteflowAOPTest.class)
@EnableAutoConfiguration
@ComponentScan
public class LiteflowAOPTest {
@Resource

View File

@@ -1,16 +0,0 @@
package com.yomahub.liteflow.test.aop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TestRunner {
public static void main(String[] args) {
try{
SpringApplication.run(TestRunner.class, args);
System.exit(0);
}catch (Throwable t){
t.printStackTrace();
}
}
}