use of org.summerb.easycrud.api.dto.PagerParams in project summerb by skarpushin.
the class GenericCrudServiceTestTemplate method testFindByQueryNumericGe.
@Test
public void testFindByQueryNumericGe() throws Exception {
createTestData();
PaginatedList<TestDto1> result = getTestDto1Service().query(new PagerParams(0, 100), Query.n().ge("majorVersion", 3));
assertEquals(2, result.getTotalResults());
}
use of org.summerb.easycrud.api.dto.PagerParams in project summerb by skarpushin.
the class GenericCrudServiceTestTemplate method testFindByQueryNotIn.
@Test
public void testFindByQueryNotIn() throws Exception {
createTestData();
PaginatedList<TestDto1> result = getTestDto1Service().query(new PagerParams(0, 100), Query.n().notIn("env", "env-UAT", "env-pilot"));
assertEquals(1, result.getTotalResults());
}
use of org.summerb.easycrud.api.dto.PagerParams in project summerb by skarpushin.
the class GenericCrudServiceTestTemplate method testFindByQueryNumberOneOf.
@Test
public void testFindByQueryNumberOneOf() throws Exception {
createTestData();
PaginatedList<TestDto1> result = getTestDto1Service().query(new PagerParams(0, 100), Query.n().in("minorVersion", 4L, 5L));
assertEquals(2, result.getTotalResults());
}
use of org.summerb.easycrud.api.dto.PagerParams in project summerb by skarpushin.
the class GenericCrudServiceTestTemplate method testFindByQueryStringNe.
@Test
public void testFindByQueryStringNe() throws Exception {
createTestData();
PaginatedList<TestDto1> result = getTestDto1Service().query(new PagerParams(0, 100), Query.n().ne("env", "env-uat"));
assertEquals(2, result.getTotalResults());
}
use of org.summerb.easycrud.api.dto.PagerParams in project summerb by skarpushin.
the class GenericCrudServiceTestTemplate method testFindByQueryIsNotNull.
@Test
public void testFindByQueryIsNotNull() throws Exception {
createTestData();
PaginatedList<TestDto1> result = getTestDto1Service().query(new PagerParams(0, 100), Query.n().isNotNull("linkToPatchToNextVersion"));
assertEquals(1, result.getTotalResults());
}
Aggregations