com.sun.japex.jdsl.junit
Class JUnitDriver

java.lang.Object
  extended by com.sun.japex.JapexDriverBase
      extended by com.sun.japex.jdsl.junit.JUnitDriver
All Implemented Interfaces:
JapexDriver, Params, java.util.concurrent.Callable<java.lang.Object>

public class JUnitDriver
extends JapexDriverBase

Implementation of a JUnit driver. The JUnit test class is defined by the 'testName' parameter, which can be either a driver or testcase parameter; the method name is defined by the 'methodName' parameter which is always a testcase parameter. This version support JUnit 4.X which requires 'testName' to be a driver parameter. It supports the following annotations:

Author:
Sameer.Tyagi@sun.com, Smitha.Prabhu@sun.com, Farrukh.Najmi@sun.com, Santiago.PericasGeertsen@sun.com

Field Summary
 
Fields inherited from class com.sun.japex.JapexDriverBase
_driver, _endTime, _needWarmup, _testCase
 
Constructor Summary
JUnitDriver()
           
 
Method Summary
 void finish(TestCase testCase)
           
 void initializeDriver()
           
 void prepare(TestCase testCase)
           
 void run(TestCase testCase)
           
 void terminateDriver()
           
 
Methods inherited from class com.sun.japex.JapexDriverBase
call, finish, getBooleanParam, getDoubleParam, getIntParam, getLongParam, getParam, getTestSuite, hasParam, prepare, run, setBooleanParam, setDoubleParam, setDriver, setEndTime, setIntParam, setLongParam, setParam, setTestCase, setTestSuite, warmup, warmup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitDriver

public JUnitDriver()
Method Detail

initializeDriver

public void initializeDriver()
Specified by:
initializeDriver in interface JapexDriver
Overrides:
initializeDriver in class JapexDriverBase

prepare

public void prepare(TestCase testCase)
Specified by:
prepare in interface JapexDriver
Overrides:
prepare in class JapexDriverBase

run

public void run(TestCase testCase)
Specified by:
run in interface JapexDriver
Overrides:
run in class JapexDriverBase

finish

public void finish(TestCase testCase)
Specified by:
finish in interface JapexDriver
Overrides:
finish in class JapexDriverBase

terminateDriver

public void terminateDriver()
Specified by:
terminateDriver in interface JapexDriver
Overrides:
terminateDriver in class JapexDriverBase


Copyright © 2011. All Rights Reserved.