[rest] Changed property type to Boolean to allow null values (#1010)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>pull/1023/head
parent
fa416be057
commit
4ccaa8b38e
|
@ -34,7 +34,7 @@ public class EnrichedItemDTO extends ItemDTO {
|
|||
public StateDescription stateDescription;
|
||||
public CommandDescription commandDescription;
|
||||
public Map<String, Object> metadata;
|
||||
public boolean editable;
|
||||
public Boolean editable;
|
||||
|
||||
public EnrichedItemDTO(ItemDTO itemDTO, String link, String state, String transformedState,
|
||||
StateDescription stateDescription, CommandDescription commandDescription) {
|
||||
|
|
|
@ -165,7 +165,7 @@ public class ItemResourceOSGiTest extends JavaOSGiTest {
|
|||
Response response = itemResource.getItems(null, null, "MyTag", null, false, "type,name");
|
||||
|
||||
JsonElement result = parser.parse(IOUtils.toString((InputStream) response.getEntity()));
|
||||
JsonElement expected = parser.parse("[{editable: true, type: \"Switch\", name: \"Switch\"}]");
|
||||
JsonElement expected = parser.parse("[{type: \"Switch\", name: \"Switch\"}]");
|
||||
assertEquals(expected, result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue