use of org.osgi.service.device.Device in project felix by apache.
the class UtilTest method VerifyValidIsDeviceInstanceValidationThrowsException.
@Test
public void VerifyValidIsDeviceInstanceValidationThrowsException() throws InvalidSyntaxException {
Properties p = new Properties();
p.put(org.osgi.framework.Constants.OBJECTCLASS, new String[] { Device.class.getName() });
ServiceReference ref = createReference(p);
Assert.assertTrue("Incorrectly determined as no device", Util.isDeviceInstance(ref));
}
Aggregations