git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141260 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ce495de6f5
commit
21c7896b85
|
@ -101,9 +101,24 @@ public class SmartgearResourcesTest extends ScopedTest {
|
||||||
resourceManagement.setJSON(ESERVICE);
|
resourceManagement.setJSON(ESERVICE);
|
||||||
|
|
||||||
String json = resourceManagement.create();
|
String json = resourceManagement.create();
|
||||||
logger.debug("Created : {}", json);
|
|
||||||
eService = Entities.unmarshal(EService.class, json);
|
eService = Entities.unmarshal(EService.class, json);
|
||||||
logger.debug("Unmarshalled {} {}", EService.NAME, eService);
|
logger.debug("Created {} {}", EService.NAME, eService);
|
||||||
|
|
||||||
|
UUID eServiceUUID = eService.getHeader().getUUID();
|
||||||
|
|
||||||
|
resourceManagement = new ResourceManagement();
|
||||||
|
resourceManagement.setUUID(eServiceUUID);
|
||||||
|
String read = resourceManagement.read();
|
||||||
|
EService readEService = Entities.unmarshal(EService.class, read);
|
||||||
|
logger.debug("Read {} {}", EService.NAME, eService);
|
||||||
|
|
||||||
|
Assert.assertTrue(eServiceUUID.compareTo(readEService.getHeader().getUUID())==0);
|
||||||
|
|
||||||
|
resourceManagement = new ResourceManagement();
|
||||||
|
resourceManagement.setUUID(eServiceUUID);
|
||||||
|
boolean deleted = resourceManagement.delete();
|
||||||
|
Assert.assertTrue(deleted);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue