@Test public void populateMalformedAnswer() throws Exception { String answerString = handler.populateAnswer(null); Assert.assertNull(answerString); Assert.assertTrue(StringUtils.isBlank(answerString)); }
@Override public String populateAnswer(String answer) { return answer; }
MCQHandler implements IAssessmentHandler { @Override public String populateAnswer(String answer) { return answer; } }
MCQHandler implements IAssessmentHandler { @Override public String populateAnswer(String answer) { return answer; } private  MCQHandler(); }
MCQHandler implements IAssessmentHandler { @Override public String populateAnswer(String answer) { return answer; } private  MCQHandler(); static IAssessmentHandler getInstance(); @Override String populateQuestion(String body); @Override String populateAnswer(String answer); }
MCQHandler implements IAssessmentHandler { @Override public String populateAnswer(String answer) { return answer; } private  MCQHandler(); static IAssessmentHandler getInstance(); @Override String populateQuestion(String body); @Override String populateAnswer(String answer);  }