Revision 9312
Added by Jing Tao over 9 years ago
test/edu/ucsb/nceas/metacat/dataone/v1/CNodeV1ServiceTest.java | ||
---|---|---|
129 | 129 |
guid.setValue("testGetSystemMetadata." + System.currentTimeMillis()); |
130 | 130 |
InputStream object = new ByteArrayInputStream("test".getBytes("UTF-8")); |
131 | 131 |
SystemMetadata sysmeta = createV1SystemMetadata(guid, session.getSubject(), object); |
132 |
Identifier retGuid = CNodeService.getInstance(request).registerSystemMetadata(session, guid, sysmeta); |
|
132 |
Session cnSession = getCNSession(); |
|
133 |
Identifier retGuid = CNodeService.getInstance(request).registerSystemMetadata(cnSession, guid, sysmeta); |
|
133 | 134 |
assertEquals(guid.getValue(), retGuid.getValue()); |
134 | 135 |
// get it |
135 | 136 |
SystemMetadata retSysmeta = CNodeService.getInstance(request).getSystemMetadata(session, guid); |
Also available in: Unified diff
Use a cn session to registerSystemmetadata.