Loading src/test/java/it/inaf/oats/vospace/CreateNodeControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public class CreateNodeControllerTest { verify(controller).createNode( argThat(node -> { UnstructuredDataNode udn = (UnstructuredDataNode) node; Property property = udn.getProperties().getProperty().get(0); Property property = udn.getProperties().get(0); return "vos:UnstructuredDataNode".equals(udn.getType()) && "test value".equals(property.getValue()) && "ivo://ivoa.net/vospace/core#description".equals(property.getUri()); Loading src/test/resources/create-unstructured-data-node.json +10 −18 Original line number Diff line number Diff line { "properties": { "property": [ "properties": [ { "value": "test value", "uri": "ivo://ivoa.net/vospace/core#description", "readOnly": false } ] }, ], "type": "vos:UnstructuredDataNode", "uri": "vos://example.com!vospace/mydata1", "accepts": { "view": [] }, "provides": { "view": [] }, "capabilities": { "capability": [] }, "accepts": [], "provides": [], "capabilities": [], "busy": false } No newline at end of file Loading
src/test/java/it/inaf/oats/vospace/CreateNodeControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public class CreateNodeControllerTest { verify(controller).createNode( argThat(node -> { UnstructuredDataNode udn = (UnstructuredDataNode) node; Property property = udn.getProperties().getProperty().get(0); Property property = udn.getProperties().get(0); return "vos:UnstructuredDataNode".equals(udn.getType()) && "test value".equals(property.getValue()) && "ivo://ivoa.net/vospace/core#description".equals(property.getUri()); Loading
src/test/resources/create-unstructured-data-node.json +10 −18 Original line number Diff line number Diff line { "properties": { "property": [ "properties": [ { "value": "test value", "uri": "ivo://ivoa.net/vospace/core#description", "readOnly": false } ] }, ], "type": "vos:UnstructuredDataNode", "uri": "vos://example.com!vospace/mydata1", "accepts": { "view": [] }, "provides": { "view": [] }, "capabilities": { "capability": [] }, "accepts": [], "provides": [], "capabilities": [], "busy": false } No newline at end of file