@Test public void testBasicMethods() throws Exception { RestfulCollection<String> collection = new RestfulCollection<String>(Lists.<String>newArrayList()); List<String> entry = Lists.newArrayList("banana"); int startIndex = 5; int totalResults = 8675309; collection.setEntry(entry); collection.setStartIndex(startIndex); collection.setTotalResults(totalResults); assertEquals(entry, collection.getEntry()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); }
@Test public void testBasicMethods() throws Exception { RestfulCollection<String> collection = new RestfulCollection<String>(Lists.<String>newArrayList()); List<String> entry = Lists.newArrayList("banana"); int startIndex = 5; int totalResults = 8675309; collection.setEntry(entry); collection.setStartIndex(startIndex); collection.setTotalResults(totalResults); assertEquals(entry, collection.getEntry()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); }
@Test public void testBasicMethods() throws Exception { RestfulCollection<String> collection = new RestfulCollection<String>(Lists.<String>newArrayList()); List<String> entryList = Lists.newArrayList("banana"); int startIndex = 5; int totalResults = 8675309; collection.setList(entryList); collection.setStartIndex(startIndex); collection.setTotalResults(totalResults); assertEquals(entryList, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); }
@Test public void testBasicMethods() throws Exception { RestfulCollection<String> collection = new RestfulCollection<String>(Lists.<String>newArrayList()); List<String> entryList = Lists.newArrayList("banana"); int startIndex = 5; int totalResults = 8675309; collection.setList(entryList); collection.setStartIndex(startIndex); collection.setTotalResults(totalResults); assertEquals(entryList, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); }
@Test public void testBasicMethods() throws Exception { RestfulCollection<String> collection = new RestfulCollection<String>(Lists.<String>newArrayList()); List<String> entryList = Lists.newArrayList("banana"); int startIndex = 5; int totalResults = 8675309; collection.setList(entryList); collection.setStartIndex(startIndex); collection.setTotalResults(totalResults); assertEquals(entryList, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); }