@Test public void testGetPreviousResource() throws Exception { Iterable<Resource> iterable = new HashSet<Resource>(); Resource prev = new ResourceImpl(Resource.Type.Cluster); Resource next = new ResourceImpl(Resource.Type.Cluster); PageResponse response = new PageResponseImpl(iterable, 99, prev, next, 0); Assert.assertEquals(prev, response.getPreviousResource()); }
@Override public Resource getPreviousResource() { return previousResource; }
PageResponseImpl implements PageResponse { @Override public Resource getPreviousResource() { return previousResource; } }
PageResponseImpl implements PageResponse { @Override public Resource getPreviousResource() { return previousResource; } PageResponseImpl(Iterable<Resource> iterable, int offset,
                          Resource previousResource, Resource nextResource,
                          Integer totalResourceCount); }
PageResponseImpl implements PageResponse { @Override public Resource getPreviousResource() { return previousResource; } PageResponseImpl(Iterable<Resource> iterable, int offset,
                          Resource previousResource, Resource nextResource,
                          Integer totalResourceCount); @Override Iterable<Resource> getIterable(); @Override int getOffset(); @Override Resource getPreviousResource(); @Override Resource getNextResource(); @Override Integer getTotalResourceCount(); }
PageResponseImpl implements PageResponse { @Override public Resource getPreviousResource() { return previousResource; } PageResponseImpl(Iterable<Resource> iterable, int offset,
                          Resource previousResource, Resource nextResource,
                          Integer totalResourceCount); @Override Iterable<Resource> getIterable(); @Override int getOffset(); @Override Resource getPreviousResource(); @Override Resource getNextResource(); @Override Integer getTotalResourceCount();  }