Class WeightCalc


  • public final class WeightCalc
    extends Object
    The WeightCalc class checks that all test cases total to a given maxScore. If the test cases do not total to the max score set in Gradescope, students could be given an incorrect grade.
    Since:
    1.1
    Version:
    3.1, 2020-05-10
    Author:
    Andrew Davis, asd@alumni.purdue.edu
    • Method Detail

      • main

        public static void main​(String[] args)
        Checks that all TestCases in a given package total to a maximum score. Totals test weights for TestSuite classes inside of the package given by the test.package.name system property. If this property is not set, the default package is used to calculate test weights. The maximum score is given by the test.maxScore system property. The value of test.maxScore must be a non-negative integer. If the maxScore property is not specified, 100 is used as the default.
        Parameters:
        args - has no effect