Author: dgolovin
Date: 2010-06-04 18:36:22 -0400 (Fri, 04 Jun 2010)
New Revision: 22575
Added:
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/WorkingsetTestSuite.java
Modified:
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/GroupingTest.java
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
enabling workinset tests
Modified:
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/GroupingTest.java
===================================================================
---
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/GroupingTest.java 2010-06-04
22:26:53 UTC (rev 22574)
+++
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/GroupingTest.java 2010-06-04
22:36:22 UTC (rev 22575)
@@ -1,24 +1,23 @@
package org.jboss.tools.workingset.core.test;
import static org.junit.Assert.assertEquals;
+import junit.framework.TestCase;
import org.jboss.tools.workingset.internal.core.NameToWorkingSet;
import org.junit.BeforeClass;
import org.junit.Test;
@SuppressWarnings("nls")
-public class GroupingTest {
+public class GroupingTest extends TestCase {
static NameToWorkingSet nws = new NameToWorkingSet();
@BeforeClass
- static public void setup() {
-
+ public void setUp() {
nws.add("org\\.jboss\\.tools\\.([^\\.]+).*", "$1", true);
nws.add("org\\.eclipse\\.([^\\.]+).*", "eclipse", false);
nws.add("org\\.eclipse\\.([^\\.]+).*", "$1", true);
nws.add("org\\.eclipse\\.([^\\.]+).*", "shouldnotbeseen", false);
-
}
@Test
@@ -60,5 +59,9 @@
assertEquals("jdt",ws[1]);
}
-
+
+ @Override
+ protected void tearDown() throws Exception {
+ nws.clear();
}
+}
Added:
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/WorkingsetTestSuite.java
===================================================================
---
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/WorkingsetTestSuite.java
(rev 0)
+++
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/WorkingsetTestSuite.java 2010-06-04
22:36:22 UTC (rev 22575)
@@ -0,0 +1,13 @@
+package org.jboss.tools.workingset.core.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+
+public class WorkingsetTestSuite {
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+ suite.addTestSuite(GroupingTest.class);
+ return suite;
+ }
+}
Property changes on:
trunk/workingset/tests/org.jboss.tools.workingset.core.test/src/org/jboss/tools/workingset/core/test/WorkingsetTestSuite.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain