org.unitils
Class UnitilsJUnit4TestBase

java.lang.Object
  extended by org.unitils.UnitilsJUnit4
      extended by org.unitils.UnitilsJUnit4TestBase
Direct Known Subclasses:
UnitilsJUnit4Test_TestClass1, UnitilsJUnit4Test_TestClass2

public abstract class UnitilsJUnit4TestBase
extends UnitilsJUnit4

Base class for the JUnit4 test listener tests.

Author:
Filip Neven, Tim Ducheyne

Constructor Summary
UnitilsJUnit4TestBase()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitilsJUnit4TestBase

public UnitilsJUnit4TestBase()
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 called method, null if not applicable


Copyright © 2011. All Rights Reserved.