Author: scabanovich
Date: 2011-06-30 14:51:24 -0400 (Thu, 30 Jun 2011)
New Revision: 32508
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java
Log:
JBIDE-9087
https://issues.jboss.org/browse/JBIDE-9087
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java 2011-06-30
18:49:52 UTC (rev 32507)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java 2011-06-30
18:51:24 UTC (rev 32508)
@@ -25,18 +25,21 @@
public class ExtensionManagerTest extends TestCase {
public void testExtensionManager() throws Exception {
+ String runtimeClassName = "org.jboss.tools.cdi.core.fake.FakeExtension";
CDIExtensionManager m = new CDIExtensionManager();
Set<String> set = new HashSet<String>();
m.setRuntimes("path1", set);
m.pathRemoved("path1");
- set.add("org.jboss.tools.cdi.core.fake.FakeExtension");
+ set.add(runtimeClassName);
m.setRuntimes("path1", set);
+ assertTrue(m.isCDIExtensionAvailable(runtimeClassName));
m.pathRemoved("path1");
+ assertFalse(m.isCDIExtensionAvailable(runtimeClassName));
+ set.add("abc");
m.setRuntimes("path1", set);
m.pathRemoved("path1");
- set.add("abc");
set.clear();
set.add("abc");