@Test public void testUpdateRanks_noChildren_NoRank() { Story story = new Story(); Project backlog = new Project(); story.setBacklog(backlog); storyRankBusiness.rankToBottom(story, backlog); replayAll(); storyBusiness.updateStoryRanks(story); verifyAll(); }
@Test public void testUpdateRanks_noChildren_HasRank() { Story story = new Story(); Project backlog = new Project(); story.setBacklog(backlog); StoryRank rank = new StoryRank(); story.getStoryRanks().add(rank); replayAll(); storyBusiness.updateStoryRanks(story); verifyAll(); }