itemsPerPage = r.getItemsPerPage(); author = "?"; link = new AtomLink("rel", "???");
itemsPerPage = r.getItemsPerPage(); author = (r.get(AUTHOR)==null) ? "?" : r.get(AUTHOR).toString(); title = (r.get(TITLE)==null) ? "?" : r.get(TITLE).toString();
map.put("itemsPerPage", collection.getItemsPerPage());
itemsPerPage = r.getItemsPerPage(); author = (r.get(AUTHOR)==null) ? "?" : r.get(AUTHOR).toString(); title = (r.get(TITLE)==null) ? "?" : r.get(TITLE).toString();
map.put("itemsPerPage", collection.getItemsPerPage());
map.put("itemsPerPage", collection.getItemsPerPage());
map.put("itemsPerPage", collection.getItemsPerPage());
map.put("itemsPerPage", collection.getItemsPerPage());
writer.setValue(String.valueOf(collection.getItemsPerPage())); writer.endNode(); writer.startNode("startIndex");
writer.endNode(); writer.startNode("itemsPerPage"); writer.setValue(String.valueOf(collection.getItemsPerPage())); writer.endNode();
writer.endNode(); writer.startNode("itemsPerPage"); writer.setValue(String.valueOf(collection.getItemsPerPage())); writer.endNode();
writer.setValue(String.valueOf(collection.getItemsPerPage())); writer.endNode(); writer.startNode("startIndex");
writer.setValue(String.valueOf(collection.getItemsPerPage())); writer.endNode(); writer.startNode("startIndex");
@Test public void testConstructors() throws Exception { List<String> entry = Lists.newArrayList("banana", "who"); RestfulCollection<String> collection = new RestfulCollection<String>(entry); assertEquals(entry, collection.getList()); assertEquals(0, collection.getStartIndex()); assertEquals(entry.size(), collection.getTotalResults()); assertEquals(entry.size(), collection.getItemsPerPage()); int startIndex = 9; int totalResults = 10; int resultsPerPage = 1; collection = new RestfulCollection<String>(entry, startIndex, totalResults, resultsPerPage); assertEquals(entry, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); assertEquals(resultsPerPage, collection.getItemsPerPage()); }
@Test public void testConstructors() throws Exception { List<String> entry = Lists.newArrayList("banana", "who"); RestfulCollection<String> collection = new RestfulCollection<String>(entry); assertEquals(entry, collection.getList()); assertEquals(0, collection.getStartIndex()); assertEquals(entry.size(), collection.getTotalResults()); assertEquals(entry.size(), collection.getItemsPerPage()); int startIndex = 9; int totalResults = 10; int resultsPerPage = 1; collection = new RestfulCollection<String>(entry, startIndex, totalResults, resultsPerPage); assertEquals(entry, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); assertEquals(resultsPerPage, collection.getItemsPerPage()); }
@Test public void testConstructors() throws Exception { List<String> entry = Lists.newArrayList("banana", "who"); RestfulCollection<String> collection = new RestfulCollection<String>(entry); assertEquals(entry, collection.getEntry()); assertEquals(0, collection.getStartIndex()); assertEquals(entry.size(), collection.getTotalResults()); assertEquals(entry.size(), collection.getItemsPerPage()); int startIndex = 9; int totalResults = 10; int resultsPerPage = 1; collection = new RestfulCollection<String>(entry, startIndex, totalResults, resultsPerPage); assertEquals(entry, collection.getEntry()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); assertEquals(resultsPerPage, collection.getItemsPerPage()); } }
@Test public void testConstructors() throws Exception { List<String> entry = Lists.newArrayList("banana", "who"); RestfulCollection<String> collection = new RestfulCollection<String>(entry); assertEquals(entry, collection.getList()); assertEquals(0, collection.getStartIndex()); assertEquals(entry.size(), collection.getTotalResults()); assertEquals(entry.size(), collection.getItemsPerPage()); int startIndex = 9; int totalResults = 10; int resultsPerPage = 1; collection = new RestfulCollection<String>(entry, startIndex, totalResults, resultsPerPage); assertEquals(entry, collection.getList()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); assertEquals(resultsPerPage, collection.getItemsPerPage()); }
@Test public void testConstructors() throws Exception { List<String> entry = Lists.newArrayList("banana", "who"); RestfulCollection<String> collection = new RestfulCollection<String>(entry); assertEquals(entry, collection.getEntry()); assertEquals(0, collection.getStartIndex()); assertEquals(entry.size(), collection.getTotalResults()); assertEquals(entry.size(), collection.getItemsPerPage()); int startIndex = 9; int totalResults = 10; int resultsPerPage = 1; collection = new RestfulCollection<String>(entry, startIndex, totalResults, resultsPerPage); assertEquals(entry, collection.getEntry()); assertEquals(startIndex, collection.getStartIndex()); assertEquals(totalResults, collection.getTotalResults()); assertEquals(resultsPerPage, collection.getItemsPerPage()); } }