@Test public void testIsSuccessIfNoResponseReceived() { CommandResult commandResult = new CommandResult(ZigBeeStatus.SUCCESS, null); assertTrue(commandResult.isSuccess()); commandResult = new CommandResult(ZigBeeStatus.FAILURE, null); assertFalse(commandResult.isSuccess()); }
public boolean isSuccess() { return !(isTimeout() || isError()); }
CommandResult { public boolean isSuccess() { return !(isTimeout() || isError()); } }
CommandResult { public boolean isSuccess() { return !(isTimeout() || isError()); } @Deprecated  CommandResult(final ZigBeeCommand response);  CommandResult(final ZigBeeStatus commandSentSuccessfully, final ZigBeeCommand response); @Deprecated  CommandResult(); }
CommandResult { public boolean isSuccess() { return !(isTimeout() || isError()); } @Deprecated  CommandResult(final ZigBeeCommand response);  CommandResult(final ZigBeeStatus commandSentSuccessfully, final ZigBeeCommand response); @Deprecated  CommandResult(); boolean isSuccess(); boolean isTimeout(); boolean isError(); Integer getStatusCode(); ZigBeeCommand getResponse(); @Override String toString(); }
CommandResult { public boolean isSuccess() { return !(isTimeout() || isError()); } @Deprecated  CommandResult(final ZigBeeCommand response);  CommandResult(final ZigBeeStatus commandSentSuccessfully, final ZigBeeCommand response); @Deprecated  CommandResult(); boolean isSuccess(); boolean isTimeout(); boolean isError(); Integer getStatusCode(); ZigBeeCommand getResponse(); @Override String toString();  }