com.amazonaws.services.simpleworkflow.flow.junit.spring
Class FlowSpringJUnit4ClassRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
com.amazonaws.services.simpleworkflow.flow.junit.spring.FlowSpringJUnit4ClassRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class FlowSpringJUnit4ClassRunner
- extends org.springframework.test.context.junit4.SpringJUnit4ClassRunner
To be used instead of SpringJUnit4ClassRunner
when testing
asynchronous code. Requires SpringWorkflowTest
rule (annotated with
- Author:
- fateev
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.springframework.test.context.junit4.SpringJUnit4ClassRunner |
createTest, createTestContextManager, getDefaultContextLoaderClassName, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat |
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, methodInvoker, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor |
Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, classRules, filter, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods |
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 |
FlowSpringJUnit4ClassRunner
public FlowSpringJUnit4ClassRunner(Class<?> clazz)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
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.springframework.test.context.junit4.SpringJUnit4ClassRunner
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.springframework.test.context.junit4.SpringJUnit4ClassRunner
Copyright © 2016. All rights reserved.