Revision 9029
Added by Jing Tao about 10 years ago
test/edu/ucsb/nceas/metacattest/IdentifierManagerTest.java | ||
---|---|---|
257 | 257 |
Identifier head = IdentifierManager.getInstance().getHeadPID(seriesId); |
258 | 258 |
System.out.println("the head 1 is "+head.getValue()); |
259 | 259 |
assertTrue(head.getValue().equals(guid.getValue())); |
260 |
assertTrue(IdentifierManager.getInstance().systemMetadataSIDExists(seriesId.getValue())); |
|
261 |
assertTrue(!IdentifierManager.getInstance().systemMetadataGUIDExists(seriesId.getValue())); |
|
262 |
assertTrue(IdentifierManager.getInstance().systemMetadataGUIDExists(guid.getValue())); |
|
263 |
assertTrue(!IdentifierManager.getInstance().systemMetadataSIDExists(guid.getValue())); |
|
260 | 264 |
|
261 | 265 |
//do a update with the same series id |
262 | 266 |
Thread.sleep(1000); |
Also available in: Unified diff
Add the code to test the methods of determining if a sid or guid exists.