Class InjectingRunner

  • java.lang.Object
    • org.junit.runner.Runner
      • org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
        • org.junit.runners.BlockJUnit4ClassRunner
          • org.ops4j.pax.exam.junit.impl.InjectingRunner
  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

    public class InjectingRunnerextends org.junit.runners.BlockJUnit4ClassRunner
    Injecting runner for CDI tests. This runner does not use an invoker.
    Toni Menzel, Harald Wellmann
    • Method Summary

      Modifier and TypeMethod and Description
      protected ObjectcreateTest()
      Creates an instance of the current test class.
      voidrun(org.junit.runner.notification.RunNotifier notifier)
      We decorate the super method by reactor setup and teardown.
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

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

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

    • Constructor Detail

      • InjectingRunner

        public InjectingRunner(Class<?> klass)                throws org.junit.runners.model.InitializationError
    • Method Detail

      • run

        public void run(org.junit.runner.notification.RunNotifier notifier)
        We decorate the super method by reactor setup and teardown. This method is called once per class. Note that the given reactor strategy decides whether or not the setup and teardown actually happens at this level.
        run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      • createTest

        protected Object createTest()                     throws Exception
        Creates an instance of the current test class. When using a probe invoker, this simply delegates to super. Otherwise, we perform injection on the instance created by the super method.

        In this case, an InjectorFactory is obtained via SPI lookup.

        createTest in class org.junit.runners.BlockJUnit4ClassRunner

Copyright © 2006–2016 OPS4J - Open Participation Software for Java. All rights reserved.

Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14