org.unitils.spring
Class SpringUnitilsJUnit38TestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
              extended by org.unitils.spring.SpringUnitilsJUnit38TestBase
All Implemented Interfaces:
junit.framework.Test, org.springframework.context.ApplicationContextAware

@TestExecutionListeners(value=SpringUnitilsAdaptorTestExecutionListener.class,
                        inheritListeners=false)
public abstract class SpringUnitilsJUnit38TestBase
extends org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests


Field Summary
 
Fields inherited from class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
applicationContext, logger, profileValueSource
 
Constructor Summary
SpringUnitilsJUnit38TestBase()
           
 
Method Summary
protected  void registerTestInvocation(TracingTestListener.TestInvocation invocation, String testMethodName)
          Records an invocation.
static void setTracingTestListener(TracingTestListener testListener)
          Sets the tracing test listener that will record all invocations.
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
getDisabledTestCount, recordDisabled, runBare, setApplicationContext
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringUnitilsJUnit38TestBase

public SpringUnitilsJUnit38TestBase()
Method Detail

setTracingTestListener

public static void setTracingTestListener(TracingTestListener testListener)
Sets the tracing test listener that will record all invocations.

Parameters:
testListener - the listener

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

registerTestInvocation

protected void registerTestInvocation(TracingTestListener.TestInvocation invocation,
                                      String testMethodName)
Records an invocation.

Parameters:
invocation - the invocation type, not null
testMethodName - the test method, null if unknown or not applicable


Copyright © 2011. All Rights Reserved.