Added Assessment Generator test

Added Assessment Generator test
This commit is contained in:
law39 2020-04-30 10:39:20 +01:00
parent 4923206ed8
commit 8eb6346e61

View file

@ -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<Question> listOfAssessments;
listOfAssessments = generateAssessment(Application.dictionary);
assertEquals(10,listOfAssessments.size());
}
}