143144145146147148149150151152153
{ private static final long serialVersionUID = 1L; public Page getTestPage() { Book mockBook = new Book("xxId", "xxName"); return new ViewBook(mockBook); } }); // assertion
159160161162163164165166167168169
/** * @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);
7475767778798081828384
257258259260261262263264265266267
8384858687888990919293
152153154155156157158159160161162
266267268269270271272273274275276