junit.extensions.jfunc
Class TestletWrapper

java.lang.Object
  |
  +--junit.extensions.jfunc.TestletWrapper
All Implemented Interfaces:
junit.framework.Test

public class TestletWrapper
extends java.lang.Object
implements junit.framework.Test

This wrapper is used to wrap an instance of test and provide it with a name and optionally arguments as well. This was done by TestCase, but the beauty of this is now you can choose between using the same instance of the test or generating a new one.


Method Summary
 int countTestCases()
           
static java.lang.Class getProxy(java.lang.Class[] interfaces, java.lang.Class superclass)
           
 java.lang.String name()
           
 void run(junit.framework.TestResult result)
           
 void runBare(junit.framework.TestResult result)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

name

public java.lang.String name()

countTestCases

public int countTestCases()
Specified by:
countTestCases in interface junit.framework.Test

run

public void run(junit.framework.TestResult result)
Specified by:
run in interface junit.framework.Test

runBare

public void runBare(junit.framework.TestResult result)
             throws java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getProxy

public static java.lang.Class getProxy(java.lang.Class[] interfaces,
                                       java.lang.Class superclass)