1 11 12 package org.eclipse.ui.testing; 13 14 import org.eclipse.core.runtime.Assert; 15 16 30 public class TestableObject { 31 32 private ITestHarness testHarness; 33 34 39 public ITestHarness getTestHarness() { 40 return testHarness; 41 } 42 43 48 public void setTestHarness(ITestHarness testHarness) { 49 Assert.isNotNull(testHarness); 50 this.testHarness = testHarness; 51 } 52 53 60 public void runTest(Runnable testRunnable) { 61 testRunnable.run(); 62 } 63 64 70 public void testingStarting() { 71 } 73 74 80 public void testingFinished() { 81 } 83 } 84 | Popular Tags |