Search in sources :

Example 1 with RemoteIncrementalFaultList

use of org.apache.cayenne.remote.RemoteIncrementalFaultList in project cayenne by apache.

the class CayenneContextWithDataContextIT method testPerformPaginatedQuery.

@Test
public void testPerformPaginatedQuery() throws Exception {
    createEightMtTable1s();
    SelectQuery query = new SelectQuery(ClientMtTable1.class);
    query.setPageSize(5);
    List<ClientMtTable1> objects = clientContext.performQuery(query);
    assertNotNull(objects);
    assertTrue(objects instanceof RemoteIncrementalFaultList);
}
Also used : SelectQuery(org.apache.cayenne.query.SelectQuery) ClientMtTable1(org.apache.cayenne.testdo.mt.ClientMtTable1) RemoteIncrementalFaultList(org.apache.cayenne.remote.RemoteIncrementalFaultList) Test(org.junit.Test)

Aggregations

SelectQuery (org.apache.cayenne.query.SelectQuery)1 RemoteIncrementalFaultList (org.apache.cayenne.remote.RemoteIncrementalFaultList)1 ClientMtTable1 (org.apache.cayenne.testdo.mt.ClientMtTable1)1 Test (org.junit.Test)1