2 changed files with 33 additions and 4 deletions
@ -0,0 +1,30 @@ |
|||||||
|
import com.cloud.kicc.workflow.KiccWorkflowApplication; |
||||||
|
import org.flowable.engine.ProcessEngineConfiguration; |
||||||
|
import org.junit.jupiter.api.Test; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||||
|
import org.springframework.test.annotation.Rollback; |
||||||
|
import org.springframework.transaction.annotation.Transactional; |
||||||
|
|
||||||
|
/** |
||||||
|
*<p> |
||||||
|
* 单元测试 |
||||||
|
*</p> |
||||||
|
*rme |
||||||
|
* @Author: wangxiang4 |
||||||
|
* @Since: 2023/10/28 |
||||||
|
*/ |
||||||
|
@SpringBootTest(classes = KiccWorkflowApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
||||||
|
public class WorkflowUnitTest { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
private ProcessEngineConfiguration engineConfiguration; |
||||||
|
|
||||||
|
@Test |
||||||
|
@Transactional |
||||||
|
@Rollback(false) |
||||||
|
public void workflowEngineDatabaseBuild() { |
||||||
|
engineConfiguration.buildProcessEngine(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue