org.spockframework.spring
Class SpringTestContextManager

java.lang.Object
  extended by org.spockframework.spring.SpringTestContextManager

public class SpringTestContextManager
extends Object

Wrapper around Spring's TestContextManager class that works with Spring 2.5 and Spring 3.


Constructor Summary
SpringTestContextManager(Class<?> testClass)
           
 
Method Summary
 void afterTestClass()
           
 void afterTestMethod(Object testInstance, Method testMethod, Throwable exception)
           
 void beforeTestClass()
           
 void beforeTestMethod(Object testInstance, Method testMethod)
           
 void prepareTestInstance(Object testInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringTestContextManager

public SpringTestContextManager(Class<?> testClass)
Method Detail

beforeTestClass

public void beforeTestClass()
                     throws Exception
Throws:
Exception

afterTestClass

public void afterTestClass()
                    throws Exception
Throws:
Exception

prepareTestInstance

public void prepareTestInstance(Object testInstance)
                         throws Exception
Throws:
Exception

beforeTestMethod

public void beforeTestMethod(Object testInstance,
                             Method testMethod)
                      throws Exception
Throws:
Exception

afterTestMethod

public void afterTestMethod(Object testInstance,
                            Method testMethod,
                            Throwable exception)
                     throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.