org.ops4j.pax.exam.junit.impl

Class ProbeRunner

  • 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.ProbeRunner
  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable


    public class ProbeRunnerextends org.junit.runners.BlockJUnit4ClassRunner
    Probe runner, executing tests via an invoker. Used for all operation modes except CDI.
    Author:
    Toni Menzel, Harald Wellmann
    • Constructor Summary

      Constructors 
      Constructor and Description
      ProbeRunner(Class<?> klass) 
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      protected org.junit.runners.model.StatementclassBlock(org.junit.runner.notification.RunNotifier notifier)
      Override to avoid running BeforeClass and AfterClass by the driver.
      protected List<org.junit.runners.model.FrameworkMethod>getChildren()
      When using a probe invoker, we replace the test methods of this class by a potentially larger set of decorated test methods.
      protected org.junit.runners.model.StatementmethodBlock(org.junit.runners.model.FrameworkMethod method)
      Override to avoid running Before, After and Rule methods by the driver.
      protected org.junit.runners.model.StatementmethodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
      When using a probe invoker, we replace the super method and invoke the test method indirectly via the reactor.
      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, createTest, describeChild, getTestRules, isIgnored, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • Methods inherited from class org.junit.runners.ParentRunner

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

        testCount
    • Constructor Detail

      • ProbeRunner

        public ProbeRunner(Class<?> klass)            throws org.junit.runners.model.InitializationError
        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.
        Overrides:
        run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      • classBlock

        protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
        Override to avoid running BeforeClass and AfterClass by the driver. They shall only be run by the container when using a probe invoker.
        Overrides:
        classBlock in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      • methodBlock

        protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
        Override to avoid running Before, After and Rule methods by the driver. They shall only be run by the container when using a probe invoker.
        Overrides:
        methodBlock in class org.junit.runners.BlockJUnit4ClassRunner
      • getChildren

        protected List<org.junit.runners.model.FrameworkMethod> getChildren()
        When using a probe invoker, we replace the test methods of this class by a potentially larger set of decorated test methods. Each original test method may give rise to multiple copies per test container or configuration.
        Overrides:
        getChildren in class org.junit.runners.BlockJUnit4ClassRunner
      • methodInvoker

        protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,                                              Object test)
        When using a probe invoker, we replace the super method and invoke the test method indirectly via the reactor.
        Overrides:
        methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner

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



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