Revision 6804
Added by ben leinfelder about 13 years ago
test/edu/ucsb/nceas/metacat/dataone/MNodeServiceTest.java | ||
---|---|---|
707 | 707 |
public void testPing() { |
708 | 708 |
|
709 | 709 |
try { |
710 |
boolean pingable = MNodeService.getInstance(request).ping();
|
|
711 |
assertTrue(pingable);
|
|
710 |
Date mnDate = MNodeService.getInstance(request).ping();
|
|
711 |
assertTrue(mnDate != null);
|
|
712 | 712 |
|
713 | 713 |
} catch (NotImplemented e) { |
714 | 714 |
e.printStackTrace(); |
test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java | ||
---|---|---|
346 | 346 |
Subject rightsHolder = new Subject(); |
347 | 347 |
rightsHolder.setValue("newUser"); |
348 | 348 |
// set it |
349 |
Identifier retPid = CNodeService.getInstance(request).setOwner(session, guid, rightsHolder, serialVersion);
|
|
349 |
Identifier retPid = CNodeService.getInstance(request).setRightsHolder(session, guid, rightsHolder, serialVersion);
|
|
350 | 350 |
assertEquals(guid, retPid); |
351 | 351 |
// get it |
352 | 352 |
sysmeta = CNodeService.getInstance(request).getSystemMetadata(session, guid); |
... | ... | |
550 | 550 |
} catch (ServiceFailure e) { |
551 | 551 |
fail("Could not get the object format list: " + e.getMessage()); |
552 | 552 |
|
553 |
} catch (InsufficientResources e) { |
|
554 |
fail("Could not get the object format list: " + e.getMessage()); |
|
555 |
|
|
556 | 553 |
} catch (NotImplemented e) { |
557 | 554 |
fail("Could not get the object format list: " + e.getMessage()); |
558 | 555 |
|
... | ... | |
591 | 588 |
} catch (ServiceFailure sfe) { |
592 | 589 |
fail("The format " + knownFormat + " was not found: " + sfe.getMessage()); |
593 | 590 |
|
594 |
} catch (InsufficientResources ise) { |
|
595 |
fail("The format " + knownFormat + " was not found: " + ise.getMessage()); |
|
596 |
|
|
597 | 591 |
} catch (NotImplemented nie) { |
598 | 592 |
fail("The getFormat() method has not been implemented: " + nie.getMessage()); |
599 | 593 |
|
Also available in: Unified diff
update tests to comply with these chenages:
new jars with many changes -- including new CN methods: ping, describe, listChecksumAlgorithm. Removed MN.setAccessPolicy. Refactored CN.setOwner() to CN.setRightsHolder().