org.unitils.spring
Class SpringUnitilsJUnit4TestBase
java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
org.unitils.spring.SpringUnitilsJUnit4TestBase
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
@TestExecutionListeners(value=SpringUnitilsAdaptorTestExecutionListener.class,
inheritListeners=false)
public abstract class SpringUnitilsJUnit4TestBase
- extends org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests |
applicationContext, logger |
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests |
setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringUnitilsJUnit4TestBase
public SpringUnitilsJUnit4TestBase()
setTracingTestListener
public static void setTracingTestListener(TracingTestListener testListener)
- Sets the tracing test listener that will record all invocations.
- Parameters:
testListener
- the listener
registerTestInvocation
protected static void registerTestInvocation(TracingTestListener.TestInvocation invocation,
Class<?> testClass,
String testMethodName)
- Records an invocation.
- Parameters:
invocation
- the invocation type, not nulltestClass
- the test class, not nulltestMethodName
- the actual test name, null if not applicable
Copyright © 2011. All Rights Reserved.