Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2008-12-29 23:03:41 -0500
committernitind2008-12-29 23:03:41 -0500
commitf6adfc96acfe9ca61dc9e7f8398bff8a9e09e07b (patch)
treefdedf545f202216e16351b03881bb5bc591e86df /development
parentfe956b635cd46c31e70099a82aeb1c6dc8837f6a (diff)
downloadwebtools.sourceediting-f6adfc96acfe9ca61dc9e7f8398bff8a9e09e07b.tar.gz
webtools.sourceediting-f6adfc96acfe9ca61dc9e7f8398bff8a9e09e07b.tar.xz
webtools.sourceediting-f6adfc96acfe9ca61dc9e7f8398bff8a9e09e07b.zip
[nodbug[ debugging output
Diffstat (limited to 'development')
-rw-r--r--development/org.eclipse.wst.sse.unittests/src/org/eclipse/wst/sse/unittests/MasterListTestSuite.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/development/org.eclipse.wst.sse.unittests/src/org/eclipse/wst/sse/unittests/MasterListTestSuite.java b/development/org.eclipse.wst.sse.unittests/src/org/eclipse/wst/sse/unittests/MasterListTestSuite.java
index ec75a0231..22b0c5a3c 100644
--- a/development/org.eclipse.wst.sse.unittests/src/org/eclipse/wst/sse/unittests/MasterListTestSuite.java
+++ b/development/org.eclipse.wst.sse.unittests/src/org/eclipse/wst/sse/unittests/MasterListTestSuite.java
@@ -39,6 +39,8 @@ import org.eclipse.wst.xsd.core.tests.internal.AllXSDCoreTests;
import org.eclipse.wst.xsd.validation.tests.internal.AllXSDTests;
public class MasterListTestSuite extends TestSuite {
+ private static final String CLASS = "class";
+ private static final String EXTENSION_POINT_ID = "org.eclipse.wst.sse.unittests.additionalTests";
public MasterListTestSuite() {
super("All Tests");
@@ -72,25 +74,29 @@ public class MasterListTestSuite extends TestSuite {
// addTest(RegressionBucket.suite());
// addTest(AllTestCases.suite());
- IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.wst.sse.unittests.additionalTests");
+ IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_POINT_ID);
for (int i = 0; i < elements.length; i++) {
if (elements[i].getName().equals("suite")) {
TestSuite suite;
try {
- suite = (TestSuite) elements[i].createExecutableExtension("class");
- addTest(new TestSuite(suite.getClass()));
+ suite = (TestSuite) elements[i].createExecutableExtension(CLASS);
+ addTestSuite(suite.getClass());
+ System.err.println("Adding TestSuite " + suite.getClass().getName());
}
catch (CoreException e) {
+ e.printStackTrace(System.err);
Platform.getLog(Platform.getBundle("org.eclipse.wst.sse.unittests")).log(e.getStatus());
}
}
else if (elements[i].getName().equals("test")) {
Test test;
try {
- test = (Test) elements[i].createExecutableExtension("class");
+ test = (Test) elements[i].createExecutableExtension(CLASS);
addTest(new TestSuite(test.getClass()));
+ System.err.println("Adding TestCase " + test.getClass().getName());
}
catch (CoreException e) {
+ e.printStackTrace(System.err);
Platform.getLog(Platform.getBundle("org.eclipse.wst.sse.unittests")).log(e.getStatus());
}
}

Back to the top