jdave.junit4
Class DescriptionFactory
java.lang.Object
jdave.junit4.DescriptionFactory
- All Implemented Interfaces:
- ISpecVisitor
public class DescriptionFactory
- extends java.lang.Object
- implements 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
| 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 Specification<?>> spec)
onContext
public void onContext(Context context)
- Specified by:
onContext in interface ISpecVisitor
onBehavior
public void onBehavior(Behavior behavior)
- Specified by:
onBehavior in interface ISpecVisitor
afterContext
public void afterContext(Context context)
- Specified by:
afterContext in interface ISpecVisitor
Copyright © 2010. All Rights Reserved.