/** Test of getInstance method, of class QuestionManager. */ public void testGetInstance() { System.out.println("getInstance"); QuestionManager expResult = QuestionManager.getInstance(); assertNotNull(expResult); QuestionManager result = QuestionManager.getInstance(); assertEquals(expResult, result); }
public void displayAll() { System.out.println("\n~~~~~~~~~~~~~~~~~~~~~~~~"); super.displayAll(); System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~"); }
private QuestionManager getQuestionManager() { if (questionManager == null) { questionManager = QuestionManager.getInstance(); } return questionManager; }
/** * Make of copy of this question, but with a new targets. * * @param targets * @return */ public LinkedQuestion newInstance(List<String> targets) { return new LinkedQuestion( QuestionManager.getNextQuestionId(), targets, question, options, persistance); }