Class FilesExistOracle


  • public class FilesExistOracle
    extends Oracle
    Oracle that checks to see if a set of files has been created.
    • Constructor Detail

      • FilesExistOracle

        public FilesExistOracle​(OracleProperties config,
                                TestCase testCase,
                                Submission sub,
                                Stage submitterStage)
        Create an oracle that launches an external command.
        Parameters:
        config - properties
        testCase - the test case on which it is applied
        sub - submission being evaluated
        submitterStage - stage where submitter code has been built
    • Method Detail

      • compare

        public OracleResult compare​(java.lang.String expected,
                                    java.lang.String actual)
        Check to see if the files listed in the oracle properties exist. Score is the percentage of those files that exist.
        Specified by:
        compare in class Oracle
        Parameters:
        expected - the expected string: ignored
        actual - the string being examined: ignored
        Returns:
        score based on how many of the requested files exist.