net.thucydides.junit.spring
Class SpringIntegration
java.lang.Object
org.junit.rules.TestWatchman
net.thucydides.junit.spring.SpringIntegration
- All Implemented Interfaces:
- org.junit.rules.MethodRule
public class SpringIntegration
- extends org.junit.rules.TestWatchman
Use the Spring test annotations in Thucydides tests.
- Author:
- johnsmart
Method Summary |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
|
protected org.springframework.test.context.TestContextManager |
getTestContextManager(Class<?> clazz)
|
protected org.junit.runners.model.Statement |
withAfters(org.junit.runners.model.FrameworkMethod frameworkMethod,
Object testInstance,
org.junit.runners.model.Statement statement,
org.springframework.test.context.TestContextManager testContextManager)
|
protected org.junit.runners.model.Statement |
withBefores(org.junit.runners.model.FrameworkMethod frameworkMethod,
Object testInstance,
org.junit.runners.model.Statement statement,
org.springframework.test.context.TestContextManager testContextManager)
|
Methods inherited from class org.junit.rules.TestWatchman |
failed, finished, starting, succeeded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringIntegration
public SpringIntegration()
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
- Specified by:
apply
in interface org.junit.rules.MethodRule
- Overrides:
apply
in class org.junit.rules.TestWatchman
getTestContextManager
protected org.springframework.test.context.TestContextManager getTestContextManager(Class<?> clazz)
withBefores
protected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod frameworkMethod,
Object testInstance,
org.junit.runners.model.Statement statement,
org.springframework.test.context.TestContextManager testContextManager)
withAfters
protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod frameworkMethod,
Object testInstance,
org.junit.runners.model.Statement statement,
org.springframework.test.context.TestContextManager testContextManager)
Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.