class AssignmentValidator: Any
Fields
Name | Description |
---|---|
val report: mutableListOf
|
is a List of Info, containing warnings about the problems that were identified during the validation |
val testMethods: mutableListOf
|
is a List of String, containing the names of the JUnit test methods that were found in the assignment's test classes. Each String will contain the name of a test method, prefixed by the name of the class where it was declared. |
Constructors
Name | Description |
---|---|
constructor()
|
This class performs validation of the assignments created by teachers, in order to make sure that they have the correct formats and include the expected plugins. |
Methods
validate
fun validate(assignmentFolder: File, assignment: Assignment)
Validates the Assignment.
Parameters
Name | Description |
---|---|
assignmentFolder: File
|
is a File, representing the file system folder where the assignment's code is stored |
assignment: Assignment
|
is the Assignment to validate |
ReturnValue
Name | Description |
---|---|
Unit
|
This class performs validation of the assignments created by teachers, in order to make sure that they have the correct formats and include the expected plugins.