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

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

public class POJOJUnitTest
extends java.lang.Object
implements TestDriver

Test an object based on junit infrastructure + some conventions.

Version:
$Revision: 7373 $
Author:
Julien Viet

Constructor Summary
POJOJUnitTest(java.lang.Class testClass)
           
POJOJUnitTest(java.lang.Object test)
           
 
Method Summary
static junit.framework.TestSuite createTestSuite(java.lang.Class testClass)
           
static junit.framework.TestSuite createTestSuite(java.lang.Class testClass, java.util.Map parameterMap)
           
 TestItemInfo getInfo()
          Returns the meta information exposed by the driver.
 DriverResponse invoke(java.lang.String testId, DriverCommand command)
          Execute a command of the testing protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POJOJUnitTest

public POJOJUnitTest(java.lang.Object test)

POJOJUnitTest

public POJOJUnitTest(java.lang.Class testClass)
Method Detail

getInfo

public TestItemInfo getInfo()
Description copied from interface: TestDriver
Returns the meta information exposed by the driver.

Specified by:
getInfo in interface TestDriver

invoke

public DriverResponse invoke(java.lang.String testId,
                             DriverCommand command)
                      throws TestDriverException
Description copied from interface: TestDriver
Execute a command of the testing protocol.

Specified by:
invoke in interface TestDriver
Throws:
TestDriverException

createTestSuite

public static junit.framework.TestSuite createTestSuite(java.lang.Class testClass,
                                                        java.util.Map parameterMap)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createTestSuite

public static junit.framework.TestSuite createTestSuite(java.lang.Class testClass)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception