use of org.mockito.internal.matchers.GreaterThan in project dhis2-core by dhis2.
the class DataElementControllerDocumentation method testFilteriLikeOk.
@Test
public void testFilteriLikeOk() throws Exception {
MockHttpSession session = getSession("F_DATAELEMENT_PUBLIC_ADD");
DataElement de = createDataElement('A');
manager.save(de);
mvc.perform(get("/dataElements?filter=name:ilike:DataElementA").session(session).contentType(TestUtils.APPLICATION_JSON_UTF8)).andExpect(jsonPath("$.pager.total", new GreaterThan<Integer>(0)));
}
use of org.mockito.internal.matchers.GreaterThan in project dhis2-core by dhis2.
the class DataElementControllerDocumentation method testFilterEqualOk.
@Test
public void testFilterEqualOk() throws Exception {
MockHttpSession session = getSession("F_DATAELEMENT_PUBLIC_ADD");
DataElement de = createDataElement('A');
manager.save(de);
mvc.perform(get("/dataElements?filter=name:eq:DataElementA").session(session).contentType(TestUtils.APPLICATION_JSON_UTF8)).andExpect(jsonPath("$.pager.total", new GreaterThan<Integer>(0)));
}
Aggregations