jdave.junit4
Class DescriptionFactory

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

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

The DescriptionFactory's only purpose is to create the appropriate hierarchy of Description objects for the surrounding JUnit 4 framework. Given a Specification class, the DescriptionFactory generates a three-level hierarchy of Descriptions as follows:

Author:
Lasse Koskela, Joni Freeman

Constructor Summary
DescriptionFactory(org.junit.runner.Description description)
           
 
Method Summary
 void afterContext(jdave.runner.Context context)
           
static org.junit.runner.Description create(java.lang.Class<? extends jdave.Specification<?>> spec)
           
 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

DescriptionFactory

public DescriptionFactory(org.junit.runner.Description description)
Method Detail

create

public static org.junit.runner.Description create(java.lang.Class<? extends jdave.Specification<?>> spec)

onContext

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

onBehavior

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

afterContext

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


Copyright ? 2009. All Rights Reserved.