Class GradingRunner

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

    public class GradingRunner
    extends org.junit.runners.BlockJUnit4ClassRunner
    Custom runner that handles CPU timeouts and stdout/err.
    • Constructor Summary

      Constructors 
      Constructor Description
      GradingRunner​(Class<?> klass)  
    • Method Summary

      Modifier and Type Method Description
      protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)  
      protected org.junit.runners.model.Statement methodInvoker​(org.junit.runners.model.FrameworkMethod method, Object test)  
      protected org.junit.runners.model.Statement withPotentialTimeout​(org.junit.runners.model.FrameworkMethod method, Object test, org.junit.runners.model.Statement next)  
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Constructor Detail

      • GradingRunner

        public GradingRunner​(Class<?> klass)
                      throws org.junit.runners.model.InitializationError
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • methodInvoker

        protected org.junit.runners.model.Statement methodInvoker​(org.junit.runners.model.FrameworkMethod method,
                                                                  Object test)
        Overrides:
        methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner
      • methodBlock

        protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)
        Overrides:
        methodBlock in class org.junit.runners.BlockJUnit4ClassRunner
      • withPotentialTimeout

        protected org.junit.runners.model.Statement withPotentialTimeout​(org.junit.runners.model.FrameworkMethod method,
                                                                         Object test,
                                                                         org.junit.runners.model.Statement next)
        Overrides:
        withPotentialTimeout in class org.junit.runners.BlockJUnit4ClassRunner