public class TestEngine
extends java.lang.Object
Copy TestEngine and TestSuite to package where solution resides. Add package statement to each as necessary.
Write test methods in TestSuite.
Set path variable so that expectedResults.txt will be located in the package. If using Eclipse, path="src\\soln_package\\" is probably what you want.
Set shouldGenerateExpectedResults=true
Run. This generates expectedResults.txt and also displays it to the console.
Set shouldGenerateExpectedResults=false
Run. You are grading the solution, thus, examine the console which shows the studentReport and make sure everything looks correct. If not, repeat these steps.
Copy TestEngine, TestSuite, and expectedResults.txt to package where student solution resides. Add package statement to each as necessary.
Set path variable so that expectedResults.txt will be located in the package. If using Eclipse, path="src\\student_package\\" is probably what you want.
Set shouldGenerateExpectedResults=false
Run. This generates studentReport.txt and also displays it to the console
Constructor and Description |
---|
TestEngine() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Program either (a) generates and saves the expected results or (b) generates, assesses and saves
the actual results from running against the student solution.
|