From 8eb6346e61e6a3c8fc1d23467b4763912e3957be Mon Sep 17 00:00:00 2001 From: law39 Date: Thu, 30 Apr 2020 10:39:20 +0100 Subject: [PATCH] Added Assessment Generator test Added Assessment Generator test --- .../group20/test/AssessmentGeneratorTest.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/test/AssessmentGeneratorTest.java diff --git a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/test/AssessmentGeneratorTest.java b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/test/AssessmentGeneratorTest.java new file mode 100644 index 0000000..d0ce61b --- /dev/null +++ b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/test/AssessmentGeneratorTest.java @@ -0,0 +1,27 @@ +package uk.ac.aber.cs22120.group20.test; + +import org.junit.jupiter.api.Test; +import uk.ac.aber.cs22120.group20.javafx.Application; +import uk.ac.aber.cs22120.group20.selfassessment.AssessmentGenerator; +import uk.ac.aber.cs22120.group20.selfassessment.Question; + +import java.util.LinkedList; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class AssessmentGeneratorTest extends AssessmentGenerator { + + @Test + void testNumOfAssessments() { + LinkedList listOfAssessments; + listOfAssessments = generateAssessment(Application.dictionary); + + assertEquals(10,listOfAssessments.size()); + + } + + + + + +} \ No newline at end of file