use of org.eclipse.smarthome.core.items.ManagedItemProvider in project smarthome by eclipse.
the class ItemResourceOSGiTest method setup.
@Before
public void setup() {
initMocks(this);
itemResource = getService(ItemResource.class);
itemResource.uriInfo = mock(UriInfo.class);
registerVolatileStorageService();
managedItemProvider = getService(ManagedItemProvider.class);
item1 = new SwitchItem(ITEM_NAME1);
item2 = new SwitchItem(ITEM_NAME2);
item3 = new DimmerItem(ITEM_NAME3);
when(itemProvider.getAll()).thenReturn(Arrays.asList(item1, item2, item3));
registerService(itemProvider);
}
Aggregations