From e7643fbc8945c343bd01bd8c379e7419c414ce97 Mon Sep 17 00:00:00 2001 From: jorge Date: Mon, 1 Apr 2024 17:27:12 +0200 Subject: [PATCH] Fixed the question tests so that they have the new values --- .../test/java/questionGenerator/question/QuestionTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/questionGenerator/src/test/java/questionGenerator/question/QuestionTests.java b/questionGenerator/src/test/java/questionGenerator/question/QuestionTests.java index 171895b6..fc5253fd 100644 --- a/questionGenerator/src/test/java/questionGenerator/question/QuestionTests.java +++ b/questionGenerator/src/test/java/questionGenerator/question/QuestionTests.java @@ -61,7 +61,9 @@ void testGetJSON() { try { JSONObject expectedJson = new JSONObject() .put("question", "What is the capital of France?") - .put("answers", new JSONArray().put("A").put("B").put("C")); + .put("answers", new JSONArray().put("A").put("B").put("C")) + .put("language", "en") + .put("type", "CAPITAL"); assertEquals(expectedJson.toString(), question.getJSON().toString()); } catch (JSONException e) { fail("JSONException occurred: " + e.getMessage());