jdave.junit4
Class JDaveCallback

java.lang.Object
  extended by jdave.junit4.JDaveCallback
All Implemented Interfaces:
jdave.runner.ISpecVisitor

public class JDaveCallback
extends java.lang.Object
implements jdave.runner.ISpecVisitor

The JDaveCallback object is responsible for keeping track of test execution through the hierarchy of JDave specifications, contexts, and spec methods. It fires the appropriate events for the given JUnit4 RunNotifier, effectively implementing the core of the JUnit4 integration.

Author:
Lasse Koskela, Joni Freeman

Constructor Summary
JDaveCallback(org.junit.runner.notification.RunNotifier notifier)
           
 
Method Summary
 void afterContext(jdave.runner.Context context)
           
 void onBehavior(jdave.runner.Behavior behavior)
           
 void onContext(jdave.runner.Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDaveCallback

public JDaveCallback(org.junit.runner.notification.RunNotifier notifier)
Method Detail

onContext

public void onContext(jdave.runner.Context context)
Specified by:
onContext in interface jdave.runner.ISpecVisitor

afterContext

public void afterContext(jdave.runner.Context context)
Specified by:
afterContext in interface jdave.runner.ISpecVisitor

onBehavior

public void onBehavior(jdave.runner.Behavior behavior)
Specified by:
onBehavior in interface jdave.runner.ISpecVisitor


Copyright ? 2008. All Rights Reserved.