Class Junit4AopClassRunner

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

    public class Junit4AopClassRunner
    extends org.junit.runners.BlockJUnit4ClassRunner
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()  
      protected List<org.junit.rules.TestRule> getTestRules​(Object target)
      Get rules for this test object.
      protected void runChild​(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)  
      protected void validateTestMethods​(List<Throwable> errors)  
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, createTest, createTest, describeChild, getChildren, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • Methods inherited from class org.junit.runners.ParentRunner

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

        testCount
    • Constructor Detail

      • Junit4AopClassRunner

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

      • validateTestMethods

        protected void validateTestMethods​(List<Throwable> errors)
        Overrides:
        validateTestMethods in class org.junit.runners.BlockJUnit4ClassRunner
      • runChild

        protected void runChild​(org.junit.runners.model.FrameworkMethod method,
                                org.junit.runner.notification.RunNotifier notifier)
        Overrides:
        runChild in class org.junit.runners.BlockJUnit4ClassRunner
      • computeTestMethods

        protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
        Overrides:
        computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunner
      • getTestRules

        protected List<org.junit.rules.TestRule> getTestRules​(Object target)
        Get rules for this test object.
        Overrides:
        getTestRules in class org.junit.runners.BlockJUnit4ClassRunner
        Parameters:
        target - the test case instance
        Returns:
        a list of TestRules that should be applied when executing this test