888990919293949596
Assert.assertEquals(pk, book.getId()); } @Test public void testLoadModelByQuery() { BookModel model = dao.loadModelByQuery(pk); Assert.assertNotNull(model); Assert.assertEquals(pk, model.getId()); }
9596979899100101102103
Assert.assertEquals(pk, model.getId()); } @Test public void testLoadModelByNamedQuery() { BookModel model = dao.loadModelByNamedQuery("Book 0"); Assert.assertNotNull(model); Assert.assertEquals(pk, model.getId()); }