Project

General

Profile

« Previous | Next » 

Revision 6357

reset object input stream (testGet)
check for reserveIdentifier NotImplemented (expected)

View differences:

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