Skip navigation links
A B C D E G H I M N P R S T 

A

actualOutput - Variable in class Test
 
addActualOutput(ArrayList<String>) - Method in class Test
Adds the actual output.
addActualResults(ArrayList<ArrayList<String>>) - Method in class TestEngine
Adds the list of results from running against the student solution (actual results) to the GradeReport
assess() - Method in class Test
Grades this test case.
assessDouble(String, String) - Method in class Test
Compares an expected double result to an actual double result using a tolerance
assessString(String, String) - Method in class Test
Compares the expected and actual output of a part of a test case using string equality.
assessTests() - Method in class GradeReport
Assesses all the test cases, tallying the points earned.

B

buildExpectedGradeReport(ArrayList<ArrayList<String>>) - Method in class TestEngine
Builds the GradeReport holding the expected results when running against the solution.

C

compareExpAndActOutputSizes() - Method in class Test
 

D

description - Variable in class Test
 

E

expectedOutput() - Method in class GradeReport
Builds and returns a string representing to be used by clients to store the expected results text file.
expectedOutput - Variable in class Test
 
expectedResultsFile - Variable in class TestEngine
 

G

generateActualResults() - Method in class TestEngine
Runs against student solution, assesses against expected results and displays a summary.
generateExpectedResults() - Method in class TestEngine
Builds and saves the expected results by running program against the solution.
generateTestResults() - Method in class TestEngine
Run the test case methods.
getActError(String, String) - Method in class Test
Computes the actual error between the expected double and the actual double.
getDouble(String) - Method in class Test
Extracts the double from the output string.
getMaxError(String) - Method in class Test
Computes the maximum error that is allowed.
GradeReport - Class in <Unnamed>
This class holds the collection of test cases, tests and a summary of the assessment results.
GradeReport() - Constructor for class GradeReport
 
gradeReport - Variable in class TestEngine
 

H

hasDoubleResult(String) - Method in class Test
 
hasRunTimeError - Variable in class Test
 

I

initializeInstanceVars() - Method in class Test
 
isCorrect - Variable in class Test
 

M

main(String[]) - Static method in class TestEngine
Program either (a) generates and saves the expected results or (b) generates, assesses and saves the actual results from running against the student solution.

N

numCorrect - Variable in class GradeReport
 
numCorrect - Variable in class Test
 
numTotal - Variable in class GradeReport
 
numTotal - Variable in class Test
 

P

path - Variable in class TestEngine
Path to location where student assessment summary should be saved if shouldSaveStudentReport=true.
percentCorrect - Variable in class GradeReport
 
pointsEarned - Variable in class GradeReport
 
pointsEarned - Variable in class Test
 
pointsMax - Variable in class GradeReport
 
pointsMax - Variable in class Test
 

R

readExpectedResults(File) - Method in class TestEngine
Read the expected results that are saved in file

S

saveResults(String, File) - Method in class TestEngine
Saves a text file.
shouldGenerateExpectedResults - Variable in class TestEngine
Set to true when generating expected results by running against the solution.
shouldSaveStudentReport - Variable in class TestEngine
Set to true to save assessment summary from running against student solution.
stripDouble(String) - Method in class Test
Removes the double and tolerance from output and returns just the output string containing the double.
studentReportFile - Variable in class TestEngine
 

T

Test - Class in <Unnamed>
This Test class represents the results of a single test case.
Test() - Constructor for class Test
 
test01() - Static method in class TestSuite
 
test02() - Static method in class TestSuite
 
test03() - Static method in class TestSuite
 
TestEngine - Class in <Unnamed>
Used to generated expected results by running against the solution and also used to grade student assignments once expected results have been generated.
TestEngine() - Constructor for class TestEngine
 
testMethodNames() - Method in class TestEngine
Gets the names of the test case methods in TestSuite
tests - Variable in class GradeReport
 
TestSuite - Class in <Unnamed>
Contains stand-alone test cases, written as static methods, that are written against the classes for an assignment.
TestSuite() - Constructor for class TestSuite
 
toString() - Method in class GradeReport
Returns a summary of each test case and an overall summary.
toString() - Method in class Test
Returns a summary of this test case showing expected and actual results for each part as well as correctness, number correct, and points earned.
A B C D E G H I M N P R S T 
Skip navigation links