Package com.gophers.services.handlers
Class AssignmentTestRunner
java.lang.Object
com.gophers.services.handlers.AssignmentTestRunner
- All Implemented Interfaces:
TestRunner<org.junit.runner.Result>
The AssignmentTestRunner class executes JUnit test cases related to student
submissions.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an AssignmentTestRunner and initializes the list of test classes to run. -
Method Summary
Modifier and TypeMethodDescriptionList<org.junit.runner.Result>Runs all predefined JUnit test cases and returns their results.
-
Constructor Details
-
AssignmentTestRunner
public AssignmentTestRunner()Constructs an AssignmentTestRunner and initializes the list of test classes to run.
-
-
Method Details
-
runAllTests
Runs all predefined JUnit test cases and returns their results.- Specified by:
runAllTestsin interfaceTestRunner<org.junit.runner.Result>- Returns:
- a list of
Resultobjects containing the results of each test
-