jdave.runner
Class ExecutingBehavior

java.lang.Object
  extended by jdave.runner.Behavior
      extended by jdave.runner.ExecutingBehavior

public class ExecutingBehavior
extends Behavior

Author:
Joni Freeman, Pekka Enberg

Field Summary
 
Fields inherited from class jdave.runner.Behavior
method
 
Constructor Summary
ExecutingBehavior(java.lang.reflect.Method method, java.lang.Class<? extends Specification<?>> specType, java.lang.Class<?> contextType)
           
 
Method Summary
protected  void destroyContext()
           
protected  java.lang.Object newContext(Specification<?> spec)
           
protected  Specification<?> newSpecification()
           
 void run(IBehaviorResults results)
           
 
Methods inherited from class jdave.runner.Behavior
getContextType, getMethod, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutingBehavior

public ExecutingBehavior(java.lang.reflect.Method method,
                         java.lang.Class<? extends Specification<?>> specType,
                         java.lang.Class<?> contextType)
Method Detail

run

public void run(IBehaviorResults results)
Specified by:
run in class Behavior

newSpecification

protected Specification<?> newSpecification()

newContext

protected java.lang.Object newContext(Specification<?> spec)
                               throws java.lang.Exception
Throws:
java.lang.Exception

destroyContext

protected void destroyContext()
                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.