Examples of numberOfQuestions()


Examples of upperbound.learningtools.funes.MultipleChoiceExam.numberOfQuestions()

  public void testReadExamWithDefaultRules() throws Exception {
    MultipleChoiceExamXmlParser parser = new MultipleChoiceExamXmlParser();
    MultipleChoiceExam exam = parser.parse(getInputStreamForExamWithDefaultRules());

    assertEquals(exam.getTitle(), EXPECTED_TITLE);
    assertEquals(exam.numberOfQuestions(), EXPECTED_NUMBER_OF_QUESTIONS);
    assertEquals(exam.getRules().getClass(), SimpleMultipleChoiceExamRules.class);
    assertEquals(((SimpleMultipleChoiceExamRules) exam.getRules()).getPercentageOfCorrectAnswersToPass(),
        SimpleMultipleChoiceExamRules.DEFAULT_PERCENTAGE_OF_CORRECT_ANSWERS_TO_PASS);

    int questionNumber = 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.