Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.testing
Class TestableObject


java.lang.Object
  extended by 
org.eclipse.ui.testing.TestableObject

public class TestableObject
extends Object

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().

Since:
3.0

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

TestableObject

public TestableObject()
Method Detail

getTestHarness

public 
ITestHarness getTestHarness()
Returns the test harness, or null if it has not yet been set.

Returns:
the test harness or null

setTestHarness

public void setTestHarness(
ITestHarness testHarness)
Sets the test harness.

Parameters:
testHarness - the test harness

runTest

public void runTest(
Runnable testRunnable)
Runs the given test runnable. The default implementation simply invokes run on the given test runnable. Subclasses may extend.

Parameters:
testRunnable - the test runnable to run

testingStarting

public void testingStarting()
Notification from the test harness that it is starting to run the tests. The default implementation does nothing. Subclasses may override.


testingFinished

public void testingFinished()
Notification from the test harness that it has finished running the tests. The default implementation does nothing. Subclasses may override.


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire