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