// ------------------------------------------------------------------------- @Test public void test_history_noInstants_pageOne() { ObjectId oid = ObjectId.of("DbSec", "201"); PagingRequest pr = PagingRequest.ofPage(1, 1); SecurityHistoryRequest request = new SecurityHistoryRequest(oid); request.setPagingRequest(pr); SecurityHistoryResult test = _secMaster.history(request); assertEquals(pr, test.getPaging().getRequest()); assertEquals(2, test.getPaging().getTotalItems()); assertEquals(1, test.getDocuments().size()); assert202(test.getDocuments().get(0)); }
// ------------------------------------------------------------------------- @Test public void test_searchPositionHistoric_noInstants_pageOne() { ObjectId oid = ObjectId.of("DbPos", "221"); PositionHistoryRequest request = new PositionHistoryRequest(oid); request.setPagingRequest(PagingRequest.ofPage(1, 1)); PositionHistoryResult test = _posMaster.history(request); assertEquals(1, test.getPaging().getFirstItemOneBased()); assertEquals(1, test.getPaging().getPagingSize()); assertEquals(2, test.getPaging().getTotalItems()); assertEquals(1, test.getDocuments().size()); assert222(test.getDocuments().get(0)); }