net.sf.twip
Class TwiP

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by net.sf.twip.TwiP
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class TwiP
extends org.junit.runners.ParentRunner<org.junit.runner.Runner>

"Tests with Properties" allows you to simply add parameters to your JUnit tests. TwiP calls your test with all possible combinations of these parameters... or at least some of them in the case of Integers, etc.

See Also:
"http://twip.sf.net"

Constructor Summary
TwiP(Class<?> klass)
           
 
Method Summary
 void addChild(org.junit.runner.Runner child)
           
protected  org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
           
protected  org.junit.runner.Description describeChild(org.junit.runner.Runner child)
           
protected  List<org.junit.runner.Runner> getChildren()
           
 org.junit.runner.Description getDescription()
           
protected  void runChild(org.junit.runner.Runner child, org.junit.runner.notification.RunNotifier notifier)
           
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, collectInitializationErrors, filter, getName, getTestClass, run, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwiP

public TwiP(Class<?> klass)
     throws Throwable
Throws:
Throwable
Method Detail

addChild

public void addChild(org.junit.runner.Runner child)

describeChild

protected org.junit.runner.Description describeChild(org.junit.runner.Runner child)
Specified by:
describeChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

getChildren

protected List<org.junit.runner.Runner> getChildren()
Specified by:
getChildren in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

classBlock

protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
Overrides:
classBlock in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

runChild

protected void runChild(org.junit.runner.Runner child,
                        org.junit.runner.notification.RunNotifier notifier)
Specified by:
runChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

getDescription

public org.junit.runner.Description getDescription()
Specified by:
getDescription in interface org.junit.runner.Describable
Overrides:
getDescription in class org.junit.runners.ParentRunner<org.junit.runner.Runner>


Copyright © 2011. All Rights Reserved.