@Test public void getPaperAfterUpdateTest() { LOGGER.debug("getPaperTest()"); Paper paper = paperService.get("paperId"); LOGGER.debug("and the paper is {}", paper.toString()); Assert.assertNotNull(paper); }
@Test public void updatePaperTest() { LOGGER.debug("updatePaperTest()"); Paper paper = paperService.get("paperId"); Assert.assertNotNull(paper); LOGGER.debug("change the lastname for updating {}", paper.toString()); paper.setTitle("hot damn title"); LOGGER.debug("the lastname is {}", paper.getTitle()); Assert.assertEquals(true, paperService.updatePaper(paper)); }