org.castor.cpa.test.framework
Class CPAThreadedTestRunnable

java.lang.Object
  extended by org.castor.cpa.test.framework.CPAThreadedTestRunnable
All Implemented Interfaces:
Runnable

public abstract class CPAThreadedTestRunnable
extends Object
implements Runnable

Abstract base class for Runnables of threaded test cases.
Override runTest() to define behaviour of test.
Based on http://www.javaworld.com/jw-12-2000/jw-1221-junit.html?page=6

Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Clovis Wichoski, Ralf Joachim

Constructor Summary
CPAThreadedTestRunnable()
           
 
Method Summary
 void run()
          Run the test in an environment where we can handle the exceptions generated by the test method.
abstract  void runTest()
          Override to define what needs to be done during test.
protected  void setParentTestCase(CPAThreadedTestCase parent)
          Set parent test case the runnable belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPAThreadedTestRunnable

public CPAThreadedTestRunnable()
Method Detail

setParentTestCase

protected final void setParentTestCase(CPAThreadedTestCase parent)
Set parent test case the runnable belongs to.

Parameters:
parent - Parent test case the runnable belongs to.

run

public final void run()
Run the test in an environment where we can handle the exceptions generated by the test method.

Specified by:
run in interface Runnable

runTest

public abstract void runTest()
                      throws Throwable
Override to define what needs to be done during test.

Throws:
Throwable - Catch anything.


Copyright © 2012. All Rights Reserved.