public boolean shouldAllowAccess() { return shouldAllowAccess(true); }
@Test public void testSoftDepRemoteUp() throws Exception { Assert.assertTrue("Registry access disallowed when remote region is UP.", registry.shouldAllowAccess(false)); Assert.assertTrue("Registry access disallowed when remote region is UP.", registry.shouldAllowAccess(true)); }
@Test public void testSoftDepRemoteDown() throws Exception { Assert.assertTrue("Registry access disallowed when remote region is down.", registry.shouldAllowAccess(false)); Assert.assertFalse("Registry access allowed when remote region is down.", registry.shouldAllowAccess(true)); }
public boolean shouldAllowAccess() { return shouldAllowAccess(true); }