@Test public void should_return_right_base_matrix() throws Exception { application.setElementValues(QuestionsMock.getMockAllOverLimit()); Integer[] baseMatrix = application.getElementValues(); Assert.assertEquals(baseMatrix[0].intValue(), 14); Assert.assertEquals(baseMatrix[1].intValue(), 4); }
@Test public void should_return_is_over_limit() throws Exception { application.setElementValues(QuestionsMock.getMockAllOverLimit()); Assert.assertTrue(application.isQuestionsOverLimit()); }
@Test public void should_return_all_questions_over_limit() throws Exception { Integer[] overLimit = getOverLimitElements(QuestionsMock.getMockAllOverLimit()); Assert.assertEquals(overLimit.length, 2); }