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);
}
Aggregations