use of org.apache.felix.ipojo.architecture.HandlerDescription in project felix by apache.
the class IgnoreCaseHandlerSelectionTest method testCreationOfIgnoreCase2.
/**
* Check that the instance is correctly created with "eMptY".
*/
@Test
public void testCreationOfIgnoreCase2() {
ServiceReference refv1 = ipojoHelper.getServiceReferenceByName(Architecture.class.getName(), "IgnoreCase-2");
Assert.assertNotNull(refv1);
Architecture arch = (Architecture) osgiHelper.getRawServiceObject(refv1);
Assert.assertEquals(ComponentInstance.VALID, arch.getInstanceDescription().getState());
HandlerDescription desc = arch.getInstanceDescription().getHandlerDescription(// Check with different case.
"org.apache.felix.ipojo.tests.core.handler:empty");
Assert.assertNotNull(desc);
Assert.assertTrue(desc.isValid());
}
Aggregations