org.unitils
Class UnitilsJUnit3TestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.unitils.UnitilsJUnit3
              extended by org.unitils.UnitilsJUnit3TestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
UnitilsJUnit3Test_TestClass1, UnitilsJUnit3Test_TestClass2

public abstract class UnitilsJUnit3TestBase
extends UnitilsJUnit3

Base class for the JUnit3 test listener tests.

Author:
Filip Neven, Tim Ducheyne

Constructor Summary
UnitilsJUnit3TestBase()
           
 
Method Summary
protected  void registerTestInvocation(TracingTestListener.TestInvocation invocation, String testMethod)
          Records an invocation.
static void setTracingTestListener(TracingTestListener testListener)
          Sets the tracing test listener that will record all invocations.
protected  void setUp()
          Overidden to register the test setup invocation.
protected  void tearDown()
          Overidden to register the test teardown invocation.
 
Methods inherited from class org.unitils.UnitilsJUnit3
getCurrentTestMethod, getTestListener, getUnitils, runBare, runTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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

UnitilsJUnit3TestBase

public UnitilsJUnit3TestBase()
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
Overidden to register the test setup invocation.

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overidden to register the test teardown invocation.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

registerTestInvocation

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

Parameters:
invocation - the invocation type, not null
testMethod - The called method, not null


Copyright © 2011. All Rights Reserved.