|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.testing.TestableObject
A testable object. Allows a test harness to register itself with a testable object. The test harness is notified of test-related lifecycle events, such as when is an appropriate time to run tests on the object. This also provides API for running tests as a runnable, and for signaling when the tests are starting and when they are finished.
The workbench provides an implementation of this facade, available
via PlatformUI.getTestableObject()
.
Constructor Summary | |
---|---|
TestableObject()
|
Method Summary | |
---|---|
ITestHarness |
getTestHarness()
Returns the test harness, or null if it has not yet been set. |
void |
runTest(Runnable testRunnable)
Runs the given test runnable. |
void |
setTestHarness(ITestHarness testHarness)
Sets the test harness. |
void |
testingFinished()
Notification from the test harness that it has finished running the tests. |
void |
testingStarting()
Notification from the test harness that it is starting to run the tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestableObject()
Method Detail |
public ITestHarness getTestHarness()
null
if it has not yet been set.
null
public void setTestHarness(ITestHarness testHarness)
testHarness
- the test harnesspublic void runTest(Runnable testRunnable)
run
on the
given test runnable. Subclasses may extend.
testRunnable
- the test runnable to runpublic void testingStarting()
public void testingFinished()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.