jdave.junit4
Class DescriptionFactory
java.lang.Object
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:
- The Specification class itself
- The Context objects defined within the Specification
- The specification methods for a given context
- Author:
- Lasse Koskela, Joni Freeman
|
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 |
DescriptionFactory
public DescriptionFactory(org.junit.runner.Description description)
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.