[jboss-osgi-commits] JBoss-OSGI SVN: r100531 - projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi92.
jboss-osgi-commits at lists.jboss.org
jboss-osgi-commits at lists.jboss.org
Fri Feb 5 10:30:51 EST 2010
Author: thomas.diesler at jboss.com
Date: 2010-02-05 10:30:50 -0500 (Fri, 05 Feb 2010)
New Revision: 100531
Modified:
projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi92/OSGi92TestCase.java
Log:
Enable OSGi92TestCase
Modified: projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi92/OSGi92TestCase.java
===================================================================
--- projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi92/OSGi92TestCase.java 2010-02-05 15:29:48 UTC (rev 100530)
+++ projects/jboss-osgi/branches/1.0.0.Beta6/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi92/OSGi92TestCase.java 2010-02-05 15:30:50 UTC (rev 100531)
@@ -28,6 +28,7 @@
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.SAXParserFactory;
+import org.jboss.osgi.spi.capability.CompendiumCapability;
import org.jboss.osgi.testing.OSGiBundle;
import org.jboss.osgi.testing.OSGiRuntime;
import org.jboss.osgi.testing.OSGiServiceReference;
@@ -35,7 +36,6 @@
import org.jboss.osgi.testing.OSGiTestHelper;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleException;
@@ -53,9 +53,10 @@
private static OSGiRuntime runtime;
@BeforeClass
- public static void beforeClass() throws BundleException
+ public static void beforeClass() throws Exception
{
runtime = new OSGiTestHelper().getDefaultRuntime();
+ runtime.addCapability(new CompendiumCapability());
}
@AfterClass
@@ -69,7 +70,6 @@
}
@Test
- @Ignore("Fails with apache felix compendium-1.2.0")
public void testDeployParsers() throws Exception
{
OSGiBundle bundleA = runtime.installBundle("jbosgi92-bundleA.jar");
@@ -79,9 +79,9 @@
String filter = "(parser.factoryname=org.jboss.test.osgi.jbosgi92.bundleA.*)";
OSGiServiceReference[] domRefs = runtime.getServiceReferences(DocumentBuilderFactory.class.getName(), filter);
- assertEquals("DocumentBuilderFactory servce available", 1, domRefs.length);
+ assertEquals("DocumentBuilderFactory service available", 1, domRefs.length);
OSGiServiceReference[] saxRefs = runtime.getServiceReferences(SAXParserFactory.class.getName(), filter);
- assertEquals("SAXParserFactory servce available", 1, saxRefs.length);
+ assertEquals("SAXParserFactory service available", 1, saxRefs.length);
}
}
\ No newline at end of file
More information about the jboss-osgi-commits
mailing list