public void testClean() throws IllegalArgumentException, NoSuchFieldException, IllegalAccessException { tst.clean(); assertEquals(0, ((StringBuilder) getValue(tst, "outputText")).length()); assertEquals(1, tst.getPageNumber()); assertEquals(1, tst.getPageSize()); assertEquals("", tst.getChoiceLabel()); assertEquals("", tst.getQuestionsTxNodeName()); assertEquals("", tst.getQuestionLabel()); }
public void testGetChoiceLabel() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException { String choiceLabel = (String) setValue(tst, "choiceLabel", "This is test!"); assertEquals(choiceLabel, tst.getChoiceLabel()); }