Project

General

Profile

« Previous | Next » 

Revision 9346

Added by Jing Tao about 9 years ago

Adjust the testReplicationPolicy method.

View differences:

test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java
435 435
			assertEquals(policy.getPreferredMemberNode(0).getValue(), sysmeta.getReplicationPolicy().getPreferredMemberNode(0).getValue());
436 436
			
437 437
        } catch(Exception e) {
438
            fail("Unexpected error: " + e.getMessage());
438
            if(e instanceof ServiceFailure) {
439
                assertTrue(e.getMessage().contains("Couldn't determine the version"));
440
            } else {
441
                fail("Unexpected error: " + e.getMessage());
442
            }
443
            
439 444
        }
440 445
	}
441 446
	

Also available in: Unified diff