| Constructor and Description |
|---|
TestRunnable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Returns the status of the owning MultiThreadedTestRunner
instance: true means that the tests have completed (monitors
may still be active), and false means that the tests are
still running.
|
void |
run() |
abstract void |
runTest()
Performs the set of processing or checks on the object-under-test,
which will be in parallel with other TestRunnable
instances.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic abstract void runTest()
throws Throwable
The implementation should be responsive to InterruptedException exceptions or to the status of Thread.isInterrupted(), as that is the signal used to tell running TestRunnable instances to halt their processing; instances which do not stop within a reasonable time frame will have Thread.stop() called on them.
Non-monitor instances must have this method implemented such that it runs in a finite time; if any instance executes over the MultiThreadedTestRunner instance maximum time limit, then the MultiThreadedTestRunner instance assumes that a test error occurred.
Throwable - any exception may be thrown and will be
reported as a test failure, except for
InterruptedExceptions, which will be ignored.public boolean isDone()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.