Revision 6413
Added by ben leinfelder over 13 years ago
test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java | ||
---|---|---|
108 | 108 |
/** |
109 | 109 |
* test for registering standalone system metadata |
110 | 110 |
*/ |
111 |
public void testRegisterSystemMetadata() {
|
|
111 |
public Identifier testRegisterSystemMetadata() {
|
|
112 | 112 |
printTestHeader("testRegisterSystemMetadata"); |
113 | 113 |
|
114 | 114 |
try { |
... | ... | |
118 | 118 |
SystemMetadata sysmeta = createSystemMetadata(guid, session.getSubject(), null); |
119 | 119 |
Identifier retGuid = CNodeService.getInstance().registerSystemMetadata(session, guid, sysmeta); |
120 | 120 |
assertEquals(guid.getValue(), retGuid.getValue()); |
121 |
return retGuid; |
|
121 | 122 |
} catch(Exception e) { |
122 | 123 |
fail("Unexpected error: " + e.getMessage()); |
123 | 124 |
} |
125 |
return null; |
|
124 | 126 |
} |
125 | 127 |
|
126 | 128 |
/** |
Also available in: Unified diff
return the test Identifier so other tests can piggyback