@Test public void differentFrequencyNotEqual() { DiagnosticRequest anotherRequest = new DiagnosticRequest( bus, id, mode); anotherRequest.setFrequency(2.0); assertThat(request, not(equalTo(anotherRequest))); }
public void setFrequency(Double frequency) { mFrequency = frequency; }
DiagnosticRequest extends DiagnosticMessage { public void setFrequency(Double frequency) { mFrequency = frequency; } }
DiagnosticRequest extends DiagnosticMessage { public void setFrequency(Double frequency) { mFrequency = frequency; } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); }
DiagnosticRequest extends DiagnosticMessage { public void setFrequency(Double frequency) { mFrequency = frequency; } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); void setMultipleResponses(boolean multipleResponses); boolean hasFrequency(); void setFrequency(Double frequency); void setName(String name); boolean getMultipleResponses(); Double getFrequency(); boolean hasName(); String getName(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override String toString(); @Override void writeToParcel(Parcel out, int flags); }
DiagnosticRequest extends DiagnosticMessage { public void setFrequency(Double frequency) { mFrequency = frequency; } DiagnosticRequest(int busId, int id, int mode);  DiagnosticRequest(int busId, int id, int mode, int pid); protected  DiagnosticRequest(Parcel in); protected  DiagnosticRequest(); void setMultipleResponses(boolean multipleResponses); boolean hasFrequency(); void setFrequency(Double frequency); void setName(String name); boolean getMultipleResponses(); Double getFrequency(); boolean hasName(); String getName(); static boolean containsRequiredFields(Set<String> fields); @Override boolean equals(Object obj); @Override String toString(); @Override void writeToParcel(Parcel out, int flags); static final String ADD_ACTION_KEY; static final String CANCEL_ACTION_KEY; }