@Test public void withNrcNotSuccessful() { response = new DiagnosticResponse(bus, id, mode, pid, payload, DiagnosticResponse.NegativeResponseCode.WRONG_BLOCK_SEQUENCE_COUNTER, 42); assertFalse(response.isSuccessful()); }
public boolean isSuccessful() { return mNegativeResponseCode == NegativeResponseCode.NONE; }
DiagnosticResponse extends DiagnosticMessage { public boolean isSuccessful() { return mNegativeResponseCode == NegativeResponseCode.NONE; } }
DiagnosticResponse extends DiagnosticMessage { public boolean isSuccessful() { return mNegativeResponseCode == NegativeResponseCode.NONE; } DiagnosticResponse(int busId, int id, int mode);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload,
            NegativeResponseCode negativeResponseCode,
            double value); protected  DiagnosticResponse(Parcel in); protected  DiagnosticResponse(); }
DiagnosticResponse extends DiagnosticMessage { public boolean isSuccessful() { return mNegativeResponseCode == NegativeResponseCode.NONE; } DiagnosticResponse(int busId, int id, int mode);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload,
            NegativeResponseCode negativeResponseCode,
            double value); protected  DiagnosticResponse(Parcel in); protected  DiagnosticResponse(); boolean isSuccessful(); boolean hasValue(); Double getValue(); void setValue(Double value); NegativeResponseCode getNegativeResponseCode(); void setNegativeResponseCode(NegativeResponseCode code); @Override String toString(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override void writeToParcel(Parcel out, int flags); }
DiagnosticResponse extends DiagnosticMessage { public boolean isSuccessful() { return mNegativeResponseCode == NegativeResponseCode.NONE; } DiagnosticResponse(int busId, int id, int mode);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload);  DiagnosticResponse(int busId, int id, int mode, int pid,
            byte[] payload,
            NegativeResponseCode negativeResponseCode,
            double value); protected  DiagnosticResponse(Parcel in); protected  DiagnosticResponse(); boolean isSuccessful(); boolean hasValue(); Double getValue(); void setValue(Double value); NegativeResponseCode getNegativeResponseCode(); void setNegativeResponseCode(NegativeResponseCode code); @Override String toString(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override void writeToParcel(Parcel out, int flags);  }