Search in sources :

Example 1 with GetTaskAssignedAsPotentialOwnerCommand

use of org.jbpm.services.task.commands.GetTaskAssignedAsPotentialOwnerCommand in project jbpm by kiegroup.

the class AbstractTaskSerializationTest method statusInCommandSerialization.

@Test
public void statusInCommandSerialization() throws Exception {
    Assume.assumeTrue(getType().equals(TestType.JAXB));
    addClassesToSerializationContext(GetTaskAssignedAsPotentialOwnerCommand.class);
    List<Status> statuses = new ArrayList<Status>();
    statuses.add(Status.Completed);
    statuses.add(Status.Exited);
    List<String> groupIds = new ArrayList<String>();
    groupIds.add("team");
    groupIds.add("region");
    QueryFilter filter = new QueryFilter(0, 0, "order", false);
    GetTaskAssignedAsPotentialOwnerCommand cmd = new GetTaskAssignedAsPotentialOwnerCommand("user", groupIds, statuses, filter);
    GetTaskAssignedAsPotentialOwnerCommand copyCmd = testRoundTrip(cmd);
    Assertions.assertThat(cmd).isEqualToComparingFieldByFieldRecursively(copyCmd);
}
Also used : Status(org.kie.api.task.model.Status) QueryFilter(org.kie.internal.query.QueryFilter) ArrayList(java.util.ArrayList) GetTaskAssignedAsPotentialOwnerCommand(org.jbpm.services.task.commands.GetTaskAssignedAsPotentialOwnerCommand) Test(org.junit.Test)

Aggregations

ArrayList (java.util.ArrayList)1 GetTaskAssignedAsPotentialOwnerCommand (org.jbpm.services.task.commands.GetTaskAssignedAsPotentialOwnerCommand)1 Test (org.junit.Test)1 Status (org.kie.api.task.model.Status)1 QueryFilter (org.kie.internal.query.QueryFilter)1