org.jboss.portal.test.framework.junit
Class JUnitAdapter

java.lang.Object
  extended by org.jboss.portal.test.framework.junit.JUnitAdapter
All Implemented Interfaces:
junit.framework.Test

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

A runner that adapts the junit.framework.Test interface to the TestDriver protocol.

Version:
$Revision: 7228 $
Author:
Julien Viet

Constructor Summary
JUnitAdapter(TestDriver test)
           
JUnitAdapter(TestDriver test, java.util.Map parameterMap)
           
JUnitAdapter(TestDriver test, TestParametrization parametrization)
           
 
Method Summary
 int countTestCases()
           
static TestParametrization getParametrization()
           
 void run(junit.framework.TestResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitAdapter

public JUnitAdapter(TestDriver test,
                    java.util.Map parameterMap)
             throws java.lang.Exception
Throws:
java.lang.Exception

JUnitAdapter

public JUnitAdapter(TestDriver test,
                    TestParametrization parametrization)
             throws java.lang.Exception
Throws:
java.lang.Exception

JUnitAdapter

public JUnitAdapter(TestDriver test)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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

getParametrization

public static TestParametrization getParametrization()