8384858687888990919293
{ private static final long serialVersionUID = 1L; public Page getTestPage() { Book mockBook = new Book("xxId", "xxName"); return new ViewBook(mockBook); } }); // assertion
152153154155156157158159160161162
266267268269270271272273274275276
/** * @throws Exception */ public void testPageConstructor() throws Exception { Book mockBook = new Book("xxId", "xxName"); Page page = new ViewBook(mockBook); tester.startPage(page); // assertion tester.assertRenderedPage(ViewBook.class);
104105106107108109110111112113114
* @throws Exception */ @Test public void viewBook() throws Exception { Book mockBook = new Book("xxId", "xxName"); Page page = new ViewBook(mockBook); tester.startPage(page); // assertion tester.assertRenderedPage(ViewBook.class);