Class PictureAutograder
- java.lang.Object
-
- Autograder
-
- PictureAutograder
-
public class PictureAutograder extends Autograder
Example child class of the Autograder. Has an additional test for comparing the output of pictures.- See Also:
Autograder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class Autograder
Autograder.CallableMethod, Autograder.StopExitSecurityManager
-
-
Field Summary
-
Fields inherited from class Autograder
CHECKSTYLE_JAR, CHECKSTYLE_LISTEN_XML, CHECKSTYLE_XML, diffNum, maxScore, visibility
-
-
Constructor Summary
Constructors Constructor Description PictureAutograder()The constructor of a picture Autograder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpictureDiffTest(java.lang.String p, java.lang.String prefix, double cold, double hot)Runs a picture diff tests for a specific file.-
Methods inherited from class Autograder
addConverter, addTestResult, addTestResult, classDoesNotHaveMultipleScanners, classDoesNotUseArrayList, classDoesNotUsePackages, comparisonTest, comparisonTests, compile, compTest, compTest, compTest, compTest, compTest, compTest, compTest, currentScore, diffFiles, getClasses, getMethod, getMethod, getModifiers, getVisibility, hasConstructorTest, hasConstructorTest, hasFieldTest, hasFieldTest, hasMethodsTest, hasMethodTest, hasMethodTest, hasOverriddenMethodTest, hasOverriddenMethodTest, junitTests, logFileDiffTest, logFileDiffTests, logFileDiffTests, runMethodWithTimeout, setScore, setTimeout, setVisibility, stackTraceToString, stdOutDiffTest, stdOutDiffTests, stdOutDiffTests, testCheckstyle, testCompiles, testConstructorCount, testMethodCount, testPublicInstanceVariables, testRunFinished, testRunFinished, testSortedCheckstyle, testSourceExists
-
-
-
-
Method Detail
-
pictureDiffTest
public void pictureDiffTest(java.lang.String p, java.lang.String prefix, double cold, double hot)Runs a picture diff tests for a specific file. This currently is designed to work with the pictures created for project 3 in Gateway Computing Spring 2019. Each picture was named prefix_i_j.png.- Parameters:
p- the program to do diff tests onprefix- the initial part of the namecold- the cold value of the gridhot- the hot value of the grid
-
-