@Test public void testIsErrorIfNoResponseReceived() { CommandResult commandResult = new CommandResult(ZigBeeStatus.SUCCESS, null); assertFalse(commandResult.isError()); commandResult = new CommandResult(ZigBeeStatus.FAILURE, null); assertTrue(commandResult.isError()); }
public boolean isError() { if (commandSentSuccessfully == ZigBeeStatus.SUCCESS) { if (hasStatusCode()) { return getStatusCode() != 0; } else { return false; } } else { return true; } }
CommandResult { public boolean isError() { if (commandSentSuccessfully == ZigBeeStatus.SUCCESS) { if (hasStatusCode()) { return getStatusCode() != 0; } else { return false; } } else { return true; } } }
CommandResult { public boolean isError() { if (commandSentSuccessfully == ZigBeeStatus.SUCCESS) { if (hasStatusCode()) { return getStatusCode() != 0; } else { return false; } } else { return true; } } @Deprecated  CommandResult(final ZigBeeCommand response);  CommandResult(final ZigBeeStatus commandSentSuccessfully, final ZigBeeCommand response); @Deprecated  CommandResult(); }
CommandResult { public boolean isError() { if (commandSentSuccessfully == ZigBeeStatus.SUCCESS) { if (hasStatusCode()) { return getStatusCode() != 0; } else { return false; } } else { return true; } } @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 isError() { if (commandSentSuccessfully == ZigBeeStatus.SUCCESS) { if (hasStatusCode()) { return getStatusCode() != 0; } else { return false; } } else { return true; } } @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();  }