@Test public void getInstanceTest() { IAssessmentHandler handler = MCQHandler.getInstance(); Assert.assertTrue(handler instanceof MCQHandler); }
public static IAssessmentHandler getInstance() { if (mcqHandler == null) mcqHandler = new MCQHandler(); return mcqHandler; }
MCQHandler implements IAssessmentHandler { public static IAssessmentHandler getInstance() { if (mcqHandler == null) mcqHandler = new MCQHandler(); return mcqHandler; } }
MCQHandler implements IAssessmentHandler { public static IAssessmentHandler getInstance() { if (mcqHandler == null) mcqHandler = new MCQHandler(); return mcqHandler; } private  MCQHandler(); }
MCQHandler implements IAssessmentHandler { public static IAssessmentHandler getInstance() { if (mcqHandler == null) mcqHandler = new MCQHandler(); return mcqHandler; } private  MCQHandler(); static IAssessmentHandler getInstance(); @Override String populateQuestion(String body); @Override String populateAnswer(String answer); }
MCQHandler implements IAssessmentHandler { public static IAssessmentHandler getInstance() { if (mcqHandler == null) mcqHandler = new MCQHandler(); return mcqHandler; } private  MCQHandler(); static IAssessmentHandler getInstance(); @Override String populateQuestion(String body); @Override String populateAnswer(String answer);  }