222324252627282930
} private MultipleChoiceExam createMultipleChoiceExam() { MultipleChoiceExam exam = new MultipleChoiceExam( "Test exam", new SimpleMultipleChoiceExamRules(), createMultipleChoiceExamQuestions()); return exam; }
1314151617181920
private List<MultipleChoiceQuestion> questions; private MultipleChoiceExamRules rules; @Override protected void setUp() throws Exception { rules = new SimpleMultipleChoiceExamRules(); questions = new ArrayList<MultipleChoiceQuestion>(); }
26272829303132
public MultipleChoiceExamDOMBasedBuilder(Document document) { this.document = document; } public MultipleChoiceExam buildExam() { return new MultipleChoiceExam(getExamTitle(), new SimpleMultipleChoiceExamRules(), getQuestions()); }