diff options
author | John Arthorne | 2004-06-15 20:01:44 +0000 |
---|---|---|
committer | John Arthorne | 2004-06-15 20:01:44 +0000 |
commit | 79c2a3cf86b17b4906c1c8386e6a903dbe13c688 (patch) | |
tree | b2ca44f9f5809a284cbced20d3c0fad5ed6d581c | |
parent | b16a58704ca982ba0e0316535f1421ef392a19c3 (diff) | |
download | eclipse.platform.runtime-79c2a3cf86b17b4906c1c8386e6a903dbe13c688.tar.gz eclipse.platform.runtime-79c2a3cf86b17b4906c1c8386e6a903dbe13c688.tar.xz eclipse.platform.runtime-79c2a3cf86b17b4906c1c8386e6a903dbe13c688.zip |
Change test to subclass RuntimeTest
3 files changed, 10 insertions, 2 deletions
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/RuntimeTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/RuntimeTest.java index 275c8606d..69af3c57f 100644 --- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/RuntimeTest.java +++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/RuntimeTest.java @@ -26,6 +26,13 @@ public abstract class RuntimeTest extends TestCase { } /** + * Constructor required by test framework. + */ + public RuntimeTest() { + super(); + } + + /** * Fails the test due to the given exception. * @param message * @param e diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/content/XMLContentDescriberTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/content/XMLContentDescriberTest.java index 82ac152a6..b5874ff80 100644 --- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/content/XMLContentDescriberTest.java +++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/content/XMLContentDescriberTest.java @@ -17,9 +17,9 @@ import org.eclipse.core.internal.runtime.InternalPlatform; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.QualifiedName; import org.eclipse.core.runtime.content.IContentDescription; -import org.eclipse.core.tests.harness.EclipseWorkspaceTest; +import org.eclipse.core.tests.runtime.RuntimeTest; -public class XMLContentDescriberTest extends EclipseWorkspaceTest { +public class XMLContentDescriberTest extends RuntimeTest { private final static String XML_WITH_ENCODED_DATA = "<?xml version=\"1.0\" encoding=\"Shift_JIS\"?><root attribute=\"build???SJIS.xml\">"; public XMLContentDescriberTest() { diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/BeginEndRuleTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/BeginEndRuleTest.java index d270a1a10..2cb837ca9 100644 --- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/BeginEndRuleTest.java +++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/BeginEndRuleTest.java @@ -317,6 +317,7 @@ public class BeginEndRuleTest extends AbstractJobManagerTest { manager.endRule(rule2); fail("1.2"); } catch (RuntimeException e) { + e.printStackTrace(); //should fail } //should still be able to end the original rule |