use of org.kie.server.api.util.TaskQueryFilterSpecBuilder in project droolsjbpm-integration by kiegroup.
the class MarshallerHelperTest method testJsonUnmarshallTaskQueryFilterSpec.
@Test
public void testJsonUnmarshallTaskQueryFilterSpec() {
TaskQueryFilterSpec expectedTaskQfs = new TaskQueryFilterSpecBuilder().get();
MarshallerHelper helper = new MarshallerHelper(null);
String marshalledQFS = "{\"order-by\" : null, \"order-asc\" : false, \"query-params\" : null}";
TaskQueryFilterSpec unmarshalledTaskQfs = helper.unmarshal(marshalledQFS, MarshallingFormat.JSON.toString(), TaskQueryFilterSpec.class);
assertThat(expectedTaskQfs, new BaseMatcher<QueryFilterSpec>() {
@Override
public void describeTo(Description description) {
}
@Override
public boolean matches(Object item) {
return new ReflectionEquals(unmarshalledTaskQfs).matches(item);
}
});
}
use of org.kie.server.api.util.TaskQueryFilterSpecBuilder in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method createQueryFilterAndEqualsTo.
private TaskQueryFilterSpec createQueryFilterAndEqualsTo(Map<TaskField, Comparable<?>> filterProperties) {
TaskQueryFilterSpecBuilder result = new TaskQueryFilterSpecBuilder();
filterProperties.forEach(result::equalsTo);
return result.get();
}
Aggregations