Assert.isTrue(isActiveEmrState(emrClusterState), String .format("The cluster with ID \"%s\" is not active. The cluster state must be in one of %s. Current state is \"%s\"", emrClusterIdTrimmed, Arrays.toString(getActiveEmrClusterStates()), emrClusterState));
Assert.isTrue(isActiveEmrState(emrClusterState), String .format("The cluster with ID \"%s\" is not active. The cluster state must be in one of %s. Current state is \"%s\"", emrClusterIdTrimmed, Arrays.toString(getActiveEmrClusterStates()), emrClusterState));
@Test public void testIsActiveEmrState() throws Exception { boolean isActive = emrHelper.isActiveEmrState("RUNNING"); assertTrue("not active", isActive); }
if (emrHelper.isActiveEmrState(emrCluster.getStatus()))
if (emrHelper.isActiveEmrState(emrCluster.getStatus()))