Revision 6357
Added by ben leinfelder over 13 years ago
test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java | ||
---|---|---|
200 | 200 |
// get it |
201 | 201 |
InputStream retObject = CNodeService.getInstance().get(session, pid); |
202 | 202 |
// check it |
203 |
object.reset(); |
|
203 | 204 |
assertTrue(IOUtils.contentEquals(object, retObject)); |
204 | 205 |
} catch(Exception e) { |
205 | 206 |
e.printStackTrace(); |
... | ... | |
276 | 277 |
// reserve it |
277 | 278 |
Identifier retPid = CNodeService.getInstance().reserveIdentifier(session, guid, null, null); |
278 | 279 |
assertEquals(guid, retPid); |
280 |
} catch(NotImplemented ni) { |
|
281 |
// this is not implemented in Metacat |
|
282 |
assertTrue(true); |
|
279 | 283 |
} catch(Exception e) { |
280 | 284 |
e.printStackTrace(); |
281 | 285 |
fail("Unexpected error: " + e.getMessage()); |
Also available in: Unified diff
reset object input stream (testGet)
check for reserveIdentifier NotImplemented (expected)