@Test public void testIsRunning() { Assert.assertEquals(new OozieExternalStatus(PREP.toString()).isRunning(), true); Assert.assertEquals(new OozieExternalStatus(RUNNING.toString()).isRunning(), true); Assert.assertEquals(new OozieExternalStatus(SUSPENDED.toString()).isRunning(), false); Assert.assertEquals(new OozieExternalStatus(SUCCEEDED.toString()).isRunning(), false); Assert.assertEquals(new OozieExternalStatus(KILLED.toString()).isRunning(), false); Assert.assertEquals(new OozieExternalStatus(FAILED.toString()).isRunning(), false); }
public boolean isRunning() { return status == RUNNING || status == PREP; }
OozieExternalStatus implements ExternalStatus { public boolean isRunning() { return status == RUNNING || status == PREP; } }
OozieExternalStatus implements ExternalStatus { public boolean isRunning() { return status == RUNNING || status == PREP; } OozieExternalStatus(String statusString); }
OozieExternalStatus implements ExternalStatus { public boolean isRunning() { return status == RUNNING || status == PREP; } OozieExternalStatus(String statusString); boolean isRunning(); boolean isSuccess(); }
OozieExternalStatus implements ExternalStatus { public boolean isRunning() { return status == RUNNING || status == PREP; } OozieExternalStatus(String statusString); boolean isRunning(); boolean isSuccess();  }