@Test public void testGetTotalResourceCount() throws Exception { Set<Resource> resources = new HashSet<Resource>(); resources.add(new ResourceImpl(Resource.Type.Stage)); QueryResponse queryResponse = new QueryResponseImpl(resources); Assert.assertEquals(0, queryResponse.getTotalResourceCount()); queryResponse = new QueryResponseImpl(resources, true, false, 99); Assert.assertEquals(99, queryResponse.getTotalResourceCount()); }
@Override public int getTotalResourceCount() { return totalResourceCount; }
QueryResponseImpl implements QueryResponse { @Override public int getTotalResourceCount() { return totalResourceCount; } }
QueryResponseImpl implements QueryResponse { @Override public int getTotalResourceCount() { return totalResourceCount; } QueryResponseImpl(Set<Resource> resources);  QueryResponseImpl(Set<Resource> resources, boolean sortedResponse,
                           boolean pagedResponse, int totalResourceCount); }
QueryResponseImpl implements QueryResponse { @Override public int getTotalResourceCount() { return totalResourceCount; } QueryResponseImpl(Set<Resource> resources);  QueryResponseImpl(Set<Resource> resources, boolean sortedResponse,
                           boolean pagedResponse, int totalResourceCount); @Override Set<Resource> getResources(); @Override boolean isSortedResponse(); @Override boolean isPagedResponse(); @Override int getTotalResourceCount(); }
QueryResponseImpl implements QueryResponse { @Override public int getTotalResourceCount() { return totalResourceCount; } QueryResponseImpl(Set<Resource> resources);  QueryResponseImpl(Set<Resource> resources, boolean sortedResponse,
                           boolean pagedResponse, int totalResourceCount); @Override Set<Resource> getResources(); @Override boolean isSortedResponse(); @Override boolean isPagedResponse(); @Override int getTotalResourceCount();  }