jdave.junit3
Class JDaveSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by jdave.junit3.JDaveSuite
All Implemented Interfaces:
jdave.runner.ISpecVisitor, junit.framework.Test

public class JDaveSuite
extends junit.framework.TestSuite
implements jdave.runner.ISpecVisitor

FIXME, make this to scan classpath

Author:
Joni Freeman

Constructor Summary
JDaveSuite(java.lang.Class<? extends jdave.Specification<?>> specType)
           
 
Method Summary
 void afterContext(jdave.runner.Context context)
           
 void onBehavior(jdave.runner.Behavior behavior)
           
 void onContext(jdave.runner.Context context)
           
protected  void runBehavior(jdave.runner.Behavior behavior, junit.framework.TestCase testCase, junit.framework.TestResult testResult)
           
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDaveSuite

public JDaveSuite(java.lang.Class<? extends jdave.Specification<?>> specType)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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

runBehavior

protected void runBehavior(jdave.runner.Behavior behavior,
                           junit.framework.TestCase testCase,
                           junit.framework.TestResult testResult)


Copyright © 2007. All Rights Reserved.