use of org.apache.activemq.artemis.core.server.impl.SharedStoreLiveActivation in project activemq-artemis by apache.
the class HAPolicyConfigurationTest method SharedStoreMasterTest.
@Test
public void SharedStoreMasterTest() throws Exception {
Configuration configuration = createConfiguration("shared-store-master-hapolicy-config.xml");
ActiveMQServerImpl server = new ActiveMQServerImpl(configuration);
try {
server.start();
Activation activation = server.getActivation();
assertTrue(activation instanceof SharedStoreLiveActivation);
HAPolicy haPolicy = server.getHAPolicy();
assertTrue(haPolicy instanceof SharedStoreMasterPolicy);
SharedStoreMasterPolicy masterPolicy = (SharedStoreMasterPolicy) haPolicy;
assertFalse(masterPolicy.isFailoverOnServerShutdown());
} finally {
server.stop();
}
}
Aggregations