use of com.oracle.bedrock.runtime.coherence.callables.GetServiceStatus in project oracle-bedrock by coherence-community.
the class AbstractCoherenceCacheServerTest method shouldStartSingletonCluster.
/**
* Ensure that we can start and stop a single Coherence Cluster Member.
*/
@Test
public void shouldStartSingletonCluster() {
Platform platform = getPlatform();
try (CoherenceCacheServer server = platform.launch(CoherenceCacheServer.class, ClusterPort.automatic(), LocalHost.only(), Diagnostics.enabled(), Console.system())) {
Eventually.assertThat(server, new GetLocalMemberId(), is(1));
Eventually.assertThat(server, new GetClusterSize(), is(1));
Eventually.assertThat(server, new GetServiceStatus("DistributedCache"), is(ServiceStatus.ENDANGERED));
}
}
Aggregations