private List<BuchDO> readBooks() { BuecherTO response = buecherService.findeBuecher(new BuchDO()); assertEquals((Object) 0, response.getReturncode()); assertTrue(response.getResults().size() > 0); return response.getResults(); }
private void createTestBooks(int count) throws Exception { Long startIsbn = new Long(300); for (int i = 0; i < count; i++) { BuchDO newBook = new BuchDO(); newBook.setIsbn(startIsbn + i); newBook.setTitel("Fun with Testing Part " + i); newBook.setPreis(25.95); BuecherTO response = buecherService.createBuch(newBook); assertEquals((Object) 0, response.getReturncode()); } }