use of com.oracle.bedrock.runtime.coherence.callables.GetClusterName in project oracle-bedrock by coherence-community.
the class AbstractCoherenceCacheServerTest method shouldUseCustomOperationalOverride.
/**
* Ensure that we can start and stop a Coherence Cluster Member
* that uses a specific operational override.
*/
@Test
public void shouldUseCustomOperationalOverride() {
Platform platform = getPlatform();
try (CoherenceCacheServer server = platform.launch(CoherenceCacheServer.class, ClusterPort.automatic(), OperationalOverride.of("test-operational-override.xml"), LocalHost.only(), Diagnostics.enabled(), Console.system())) {
assertThat(server, new GetLocalMemberId(), is(1));
assertThat(server, new GetClusterSize(), is(1));
assertThat(server, new GetClusterName(), is("MyCluster"));
}
}
Aggregations