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