use of org.eclipse.smarthome.core.items.dto.MetadataDTO in project smarthome by eclipse.
the class ItemResourceOSGiTest method testMetadata.
@Test
public void testMetadata() {
MetadataDTO dto = new MetadataDTO();
dto.value = "some value";
assertEquals(201, itemResource.addMetadata(ITEM_NAME1, "namespace", dto).getStatus());
assertEquals(200, itemResource.removeMetadata(ITEM_NAME1, "namespace").getStatus());
assertEquals(404, itemResource.removeMetadata(ITEM_NAME1, "namespace").getStatus());
}
Aggregations