Search in sources :

Example 16 with ApproveTask

use of io.crnk.activiti.example.model.ApproveTask in project crnk-framework by crnk-project.

the class ApprovalIntTest method checkApprovalWorkflow.

@Test
public void checkApprovalWorkflow() {
    Schedule schedule = createSchedule();
    updateToTriggerApproval(schedule);
    ApproveTask task = verifyApprovalStarted(schedule);
    approve(task);
    verifyApprovalCompleted(schedule);
    verifyScheduleUpdated();
}
Also used : Schedule(io.crnk.test.mock.models.Schedule) ApproveTask(io.crnk.activiti.example.model.ApproveTask) Test(org.junit.Test) JerseyTest(org.glassfish.jersey.test.JerseyTest)

Aggregations

ApproveTask (io.crnk.activiti.example.model.ApproveTask)16 Test (org.junit.Test)13 QuerySpec (io.crnk.core.queryspec.QuerySpec)11 SortSpec (io.crnk.core.queryspec.SortSpec)4 ScheduleApprovalProcessInstance (io.crnk.activiti.example.model.ScheduleApprovalProcessInstance)2 ResourceNotFoundException (io.crnk.core.exception.ResourceNotFoundException)2 CrnkBoot (io.crnk.core.boot.CrnkBoot)1 FilterSpec (io.crnk.core.queryspec.FilterSpec)1 TestModule (io.crnk.test.mock.TestModule)1 Schedule (io.crnk.test.mock.models.Schedule)1 OffsetDateTime (java.time.OffsetDateTime)1 JerseyTest (org.glassfish.jersey.test.JerseyTest)1 Before (org.junit.Before)1