use of org.camunda.bpm.engine.impl.persistence.entity.FilterEntity in project camunda-bpm-platform by camunda.
the class FilterRestServiceInteractionTest method testGetFilterWithoutSorting.
@Test
public void testGetFilterWithoutSorting() {
TaskQuery query = new TaskQueryImpl();
Filter filter = new FilterEntity("Task").setName("test").setQuery(query);
when(filterServiceMock.getFilter(EXAMPLE_FILTER_ID)).thenReturn(filter);
given().pathParam("id", EXAMPLE_FILTER_ID).then().expect().statusCode(Status.OK.getStatusCode()).body("query.sorting", isEmptyOrNullString()).when().get(SINGLE_FILTER_URL);
}
Aggregations