类 CabinJUnit4Runner

  • 所有已实现的接口:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

    public class CabinJUnit4Runner
    extends org.junit.runners.BlockJUnit4ClassRunner
    Used to run unit test
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected org.junit.runners.model.TestClass createTestClass​(Class<?> testClass)  
      void run​(org.junit.runner.notification.RunNotifier notifier)  
      • 从类继承的方法 org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • 从类继承的方法 org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
      • 从类继承的方法 org.junit.runner.Runner

        testCount
    • 构造器详细资料

      • CabinJUnit4Runner

        public CabinJUnit4Runner​(Class<?> testClass)
                          throws org.junit.runners.model.InitializationError
        抛出:
        org.junit.runners.model.InitializationError
    • 方法详细资料

      • createTestClass

        protected org.junit.runners.model.TestClass createTestClass​(Class<?> testClass)
        覆盖:
        createTestClass 在类中 org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      • run

        public void run​(org.junit.runner.notification.RunNotifier notifier)
        覆盖:
        run 在类中 org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>