use of org.eclipse.vorto.repository.web.core.dto.BluetoothQuery in project vorto by eclipse.
the class BlueToothDeviceInfoProfileResolverTest method testResolveInfoModelByDeviceInfoProfileSerialNo.
@Test
public void testResolveInfoModelByDeviceInfoProfileSerialNo() {
importModel("bluetooth/ColorLight.fbmodel");
importModel("bluetooth/ColorLightIM.infomodel");
importModel("bluetooth/ColorLight_bluetooth.mapping");
DefaultResolver resolver = new DefaultResolver();
resolver.setRepositoryFactory(repositoryFactory);
resolver.setSearchService(searchService);
assertEquals(new ModelId("ColorLightIM", "com.mycompany", "1.0.0"), resolver.resolve(new BluetoothQuery("4810")));
assertNotNull(repositoryFactory.getRepository(createUserContext("admin")).getById(resolver.resolve(new BluetoothQuery("4810"))));
}
Aggregations