@Test public void checksThatStorysIterationMatches_rankUnder() { Iteration ite = new Iteration(); Story story = new Story(); story.setIteration(ite); Story ref = new Story(); ref.setIteration(ite); storyRankBusiness.rankBelow(story, ite, ref); replayAll(); storyBusiness.rankStoryUnder(story, ref, null); verifyAll(); }
@Test public void testRankStoryUnder() { Backlog blog = new Project(); Story story = new Story(); story.setBacklog(blog); Story ref = new Story(); ref.setBacklog(blog); storyRankBusiness.rankBelow(story, blog, ref); replayAll(); storyBusiness.rankStoryUnder(story, ref, blog); verifyAll(); }