Revision 9348
Added by Jing Tao about 9 years ago
test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java | ||
---|---|---|
369 | 369 |
result = CNodeService.getInstance(request).isAuthorized(session, guid, Permission.WRITE); |
370 | 370 |
assertTrue(result); |
371 | 371 |
} catch(Exception e) { |
372 |
fail("Unexpected error: " + e.getMessage()); |
|
372 |
if(e instanceof ServiceFailure) { |
|
373 |
assertTrue(e.getMessage().contains("Couldn't determine the version")); |
|
374 |
} else { |
|
375 |
fail("Unexpected error: " + e.getMessage()); |
|
376 |
} |
|
373 | 377 |
} |
374 | 378 |
} |
375 | 379 |
|
Also available in: Unified diff
Adjusted the testSetAccessPolicy method.