|
|
@@ -6,11 +6,9 @@ import com.ningdatech.pmapi.AppTests; |
|
|
|
import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.entity.Project; |
|
|
|
import com.ningdatech.pmapi.projectlib.service.IProjectService; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
import org.junit.Test; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
|
|
|
|
/** |
|
|
|
* 状态机测试 |
|
|
|
* |
|
|
@@ -27,7 +25,7 @@ public class StateMachineTest extends AppTests { |
|
|
|
|
|
|
|
@Test |
|
|
|
public void stateMachineTest() { |
|
|
|
Project project = projectService.getById(292); |
|
|
|
Project project = projectService.getById(485); |
|
|
|
stateMachineUtils.pass(project); |
|
|
|
System.out.println(String.format("project:%s", JSON.toJSONString(project))); |
|
|
|
projectService.updateById(project); |
|
|
|