ARTEMIS-1851 avoid exception in isReplicaSync()
This commit is contained in:
parent
82b5871cfd
commit
ecb9d462ce
|
@ -946,7 +946,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||||
} else if (activation instanceof SharedNothingBackupActivation) {
|
} else if (activation instanceof SharedNothingBackupActivation) {
|
||||||
return ((SharedNothingBackupActivation) activation).isRemoteBackupUpToDate();
|
return ((SharedNothingBackupActivation) activation).isRemoteBackupUpToDate();
|
||||||
} else {
|
} else {
|
||||||
throw ActiveMQMessageBundle.BUNDLE.methodNotApplicable();
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,6 +179,11 @@ public class ActiveMQServerControlTest extends ManagementTestBase {
|
||||||
Assert.assertEquals(connectorConfig.getName(), config[0]);
|
Assert.assertEquals(connectorConfig.getName(), config[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testIsReplicaSync() throws Exception {
|
||||||
|
Assert.assertFalse(createManagementControl().isReplicaSync());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetConnectorsAsJSON() throws Exception {
|
public void testGetConnectorsAsJSON() throws Exception {
|
||||||
ActiveMQServerControl serverControl = createManagementControl();
|
ActiveMQServerControl serverControl = createManagementControl();
|
||||||
|
|
Loading…
Reference in New Issue