org.unitils.spring
Class SpringUnitilsJUnit4TestBase

java.lang.Object
  extended by org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
      extended by 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


Field Summary
 
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
 
Constructor Summary
SpringUnitilsJUnit4TestBase()
           
 
Method Summary
protected static void registerTestInvocation(TracingTestListener.TestInvocation invocation, Class<?> testClass, String testMethodName)
          Records an invocation.
static void setTracingTestListener(TracingTestListener testListener)
          Sets the tracing test listener that will record all invocations.
 
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
 

Constructor Detail

SpringUnitilsJUnit4TestBase

public SpringUnitilsJUnit4TestBase()
Method Detail

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 null
testClass - the test class, not null
testMethodName - the actual test name, null if not applicable


Copyright © 2011. All Rights Reserved.