Class Program


  • public class Program
    extends java.lang.Object
    Small class representing a Java program. This is used in the sample main as a way to abstract out information so that the autograder does not have to be updated every time from scratch for a new project and can just be updated in the run_autograder file.
    See Also:
    AutograderMain
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean exists()
      returns whether the file exists.
      boolean hasJunits()
      Method to check if the file has junits attacked.
      java.lang.String name()
      Getter for the name.
      void setExists​(boolean b)
      Set whether a submission file exists.
      int testCount()
      Getter for the test count.
      int unitCount()
      Getter for the unitCount.
      boolean userWritten()
      Metho to check who wrote the java file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • exists

        public boolean exists()
        returns whether the file exists.
        Returns:
        exists
      • setExists

        public void setExists​(boolean b)
        Set whether a submission file exists.
        Parameters:
        b - whether it exists
      • name

        public java.lang.String name()
        Getter for the name.
        Returns:
        the name
      • testCount

        public int testCount()
        Getter for the test count.
        Returns:
        the test count
      • unitCount

        public int unitCount()
        Getter for the unitCount.
        Returns:
        the unit Count
      • userWritten

        public boolean userWritten()
        Metho to check who wrote the java file.
        Returns:
        true if written by student false if a starter file
      • hasJunits

        public boolean hasJunits()
        Method to check if the file has junits attacked.
        Returns:
        true if junits false otherwise