|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.opencms.test.OpenCmsThreadedTestCase
public class OpenCmsThreadedTestCase
Allows to run an OpenCmsTestCase
in a separate Thread,
for concurrent execution.
Usually this class is created by a OpenCmsThreadedTestCaseSuite
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
OpenCmsThreadedTestCase(OpenCmsTestCase testCase,
Method method,
Object[] parameters)
Generates a new threaded test case. |
Method Summary | |
---|---|
Object |
getResult()
Returns the (optional) result object of the selected test method. |
long |
getRuntime()
Returns the total runtime of this thread, or -1 if the thread was not run at all. |
Throwable |
getThrowable()
Returns the stored Throwable that was thrown when executing the selected test method, or null
if the test method did not cause an exception. |
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenCmsThreadedTestCase(OpenCmsTestCase testCase, Method method, Object[] parameters)
testCase
- the test case class to usemethod
- the method to execute on the test caseparameters
- the parameter values for the methodMethod Detail |
---|
public Object getResult()
public long getRuntime()
-1
if the thread was not run at all.
-1
if the thread was not run at allpublic Throwable getThrowable()
null
if the test method did not cause an exception.
null
if the test method did not cause an exceptionpublic void run()
run
in interface Runnable
run
in class Thread
Runnable.run()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |