[jboss-osgi-commits] JBoss-OSGI SVN: r97615 - projects/jboss-osgi/projects/runtime/framework/trunk/src/test/java/org/jboss/test/osgi/service.
jboss-osgi-commits at lists.jboss.org
jboss-osgi-commits at lists.jboss.org
Wed Dec 9 10:00:29 EST 2009
Author: alesj
Date: 2009-12-09 10:00:28 -0500 (Wed, 09 Dec 2009)
New Revision: 97615
Modified:
projects/jboss-osgi/projects/runtime/framework/trunk/src/test/java/org/jboss/test/osgi/service/GetUnGetServiceUnitTestCase.java
Log:
Use const #2.
Modified: projects/jboss-osgi/projects/runtime/framework/trunk/src/test/java/org/jboss/test/osgi/service/GetUnGetServiceUnitTestCase.java
===================================================================
--- projects/jboss-osgi/projects/runtime/framework/trunk/src/test/java/org/jboss/test/osgi/service/GetUnGetServiceUnitTestCase.java 2009-12-09 14:57:26 UTC (rev 97614)
+++ projects/jboss-osgi/projects/runtime/framework/trunk/src/test/java/org/jboss/test/osgi/service/GetUnGetServiceUnitTestCase.java 2009-12-09 15:00:28 UTC (rev 97615)
@@ -157,7 +157,7 @@
bundleContext.addFrameworkListener(this);
- ServiceRegistration registration = bundleContext.registerService(BundleContext.class.getName(), new BrokenServiceFactory(bundleContext, true), null);
+ ServiceRegistration registration = bundleContext.registerService(OBJCLASS, new BrokenServiceFactory(bundleContext, true), null);
ServiceReference reference = registration.getReference();
Object actual = bundleContext.getService(reference);
assertNull("" + actual, actual);
@@ -181,7 +181,7 @@
bundleContext.addFrameworkListener(this);
- ServiceRegistration registration = bundleContext.registerService(BundleContext.class.getName(), new BrokenServiceFactory(bundleContext, false), null);
+ ServiceRegistration registration = bundleContext.registerService(OBJCLASS, new BrokenServiceFactory(bundleContext, false), null);
ServiceReference reference = registration.getReference();
Object actual = bundleContext.getService(reference);
assertEquals(bundleContext, actual);
@@ -206,7 +206,7 @@
BundleContext bundleContext = bundle.getBundleContext();
assertNotNull(bundleContext);
- ServiceRegistration registration = bundleContext.registerService(BundleContext.class.getName(), bundleContext, null);
+ ServiceRegistration registration = bundleContext.registerService(OBJCLASS, bundleContext, null);
ServiceReference reference = registration.getReference();
Object actual = bundleContext.getService(reference);
assertEquals(bundleContext, actual);
More information about the jboss-osgi-commits
mailing list