net.sf.twip
Class TwiP

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

public class TwiP
extends org.junit.runners.BlockJUnit4ClassRunner

"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(java.lang.Class<?> testClass)
           
 
Method Summary
static java.util.List<FrameworkMethodWithArgs> computeParameterizedTestMethods(java.lang.reflect.Method method)
           
protected  java.util.List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
           
protected  org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, java.lang.Object testInstance)
           
protected  java.lang.String testName(org.junit.runners.model.FrameworkMethod method)
           
protected  void validatePublicVoidNoArgMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, boolean isStatic, java.util.List<java.lang.Throwable> errors)
           
protected  org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method, java.lang.Object testInstance, org.junit.runners.model.Statement statement)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, createTest, describeChild, getChildren, methodBlock, possiblyExpectingExceptions, runChild, validateInstanceMethods, validateTestMethods, validateZeroArgConstructor, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, run, sort, 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
 
Methods inherited from interface org.junit.runner.manipulation.Filterable
filter
 
Methods inherited from interface org.junit.runner.manipulation.Sortable
sort
 

Constructor Detail

TwiP

public TwiP(java.lang.Class<?> testClass)
     throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError
Method Detail

computeParameterizedTestMethods

public static java.util.List<FrameworkMethodWithArgs> computeParameterizedTestMethods(java.lang.reflect.Method method)
Returns:
the list of FrameworkMethodWithArgs that need to be called for this method.

computeTestMethods

protected java.util.List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
Overrides:
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunner

methodInvoker

protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
                                                          java.lang.Object testInstance)
Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner

testName

protected java.lang.String testName(org.junit.runners.model.FrameworkMethod method)
Overrides:
testName in class org.junit.runners.BlockJUnit4ClassRunner

validatePublicVoidNoArgMethods

protected void validatePublicVoidNoArgMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                              boolean isStatic,
                                              java.util.List<java.lang.Throwable> errors)
Overrides:
validatePublicVoidNoArgMethods in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>

withAfters

protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
                                                       java.lang.Object testInstance,
                                                       org.junit.runners.model.Statement statement)
Overrides:
withAfters in class org.junit.runners.BlockJUnit4ClassRunner


Copyright © 2010. All Rights Reserved.