@Test public void should_return_not_over_limit() throws Exception { application.setElementValues(QuestionsMock.getMockLessQuestions()); Assert.assertFalse(application.isQuestionsOverLimit()); }
@Test public void should_return_in_the_limit() throws Exception { application.setElementValues(QuestionsMock.getMockAllGood()); Assert.assertFalse(application.isQuestionsOverLimit()); }
@Test public void should_return_is_over_limit() throws Exception { application.setElementValues(QuestionsMock.getMockAllOverLimit()); Assert.assertTrue(application.isQuestionsOverLimit()); }