use of org.eclipse.vorto.repository.api.resolver.BluetoothQuery in project vorto by eclipse.
the class BlueToothDeviceInfoProfileResolverTest method testResolveInfoModelByDeviceInfoProfileSerialNo.
@Test
public void testResolveInfoModelByDeviceInfoProfileSerialNo() {
checkinModel("bluetooth/ColorLight.fbmodel");
checkinModel("bluetooth/ColorLightIM.infomodel");
checkinModel("bluetooth/ColorLight_bluetooth.mapping");
DefaultResolver resolver = new DefaultResolver();
resolver.setRepository(this.modelRepository);
assertEquals(new ModelId("ColorLightIM", "com.mycompany", "1.0.0"), resolver.resolve(new BluetoothQuery("4810")));
assertNotNull(this.modelRepository.getById(resolver.resolve(new BluetoothQuery("4810"))));
}
Aggregations