diff --git a/PPALMS/src/test/FIllInTheBlankCreationTests.java b/PPALMS/src/test/FIllInTheBlankCreationTests.java index 05170a8..2e5697f 100644 --- a/PPALMS/src/test/FIllInTheBlankCreationTests.java +++ b/PPALMS/src/test/FIllInTheBlankCreationTests.java @@ -125,6 +125,7 @@ void beforeEach() { @Test void testGetProblemJson() { JSONObject obj = fillInTheBlankCreation.getProblemJson(); + assertTrue(obj.containsKey("questions")); List questions = (List) obj.get("questions"); Map> blankBounds = problem.getBlankBounds(); @@ -196,7 +197,7 @@ private PpalmsProblem createValidFillInTheBlankProblem() { } ); problem.setLmsTarget(LmsTarget.Canvas); - problem.setProblemType(ProblemType.Ordering); + problem.setProblemType(ProblemType.FillInTheBlank); return problem; } diff --git a/PPALMS/src/test/MultiplChoiceCreationTests.java b/PPALMS/src/test/MultiplChoiceCreationTests.java index 817dde2..f77cad2 100644 --- a/PPALMS/src/test/MultiplChoiceCreationTests.java +++ b/PPALMS/src/test/MultiplChoiceCreationTests.java @@ -121,6 +121,7 @@ void beforeEach() { @Test void testGetProblemJson() { JSONObject obj = mcCreation.getProblemJson(); + assertTrue(obj.containsKey("questions")); List questions = (List) obj.get("questions"); List lines = problem.getSourceCodeLines(); assertEquals(lines.size(), questions.size());