Added Assessment Generator test
Added Assessment Generator test
This commit is contained in:
parent
4923206ed8
commit
8eb6346e61
1 changed files with 27 additions and 0 deletions
|
@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in a new issue