use of org.apache.felix.httplite.osgi.Activator in project felix by apache.
the class AbstractPojoSRTestCase method setUp.
/* (non-Javadoc)
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
super.setUp();
// Initialize service registry
ServiceLoader loader = ServiceLoader.load(PojoServiceRegistryFactory.class);
registry = ((PojoServiceRegistryFactory) loader.iterator().next()).newPojoServiceRegistry(new HashMap());
assertNotNull(registry);
// Initialize bundle
activator = new Activator();
activator.start(registry.getBundleContext());
}
Aggregations