com.amazonaws.services.simpleworkflow.flow.junit
Class FlowBlockJUnit4ClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by com.amazonaws.services.simpleworkflow.flow.junit.FlowBlockJUnit4ClassRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class FlowBlockJUnit4ClassRunner
extends org.junit.runners.BlockJUnit4ClassRunner

To be used instead of BlockJUnit4ClassRunner when testing asynchronous code. Requires WorkflowTest rule (annotated with @Rule) to be present in the tested class.

Author:
fateev

Constructor Summary
FlowBlockJUnit4ClassRunner(Class<?> klass)
           
 
Method Summary
protected  org.junit.runners.model.Statement possiblyExpectingExceptions(org.junit.runners.model.FrameworkMethod method, Object test, org.junit.runners.model.Statement next)
           
protected  List<org.junit.rules.MethodRule> rules(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, methodBlock, methodInvoker, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowBlockJUnit4ClassRunner

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

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

rules

protected List<org.junit.rules.MethodRule> rules(Object test)
Overrides:
rules in class org.junit.runners.BlockJUnit4ClassRunner

possiblyExpectingExceptions

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


Copyright © 2016. All rights reserved.