@Test public void testIfSpeeding() { assertThat(mCurrentSpeedData.isSpeeding(), is(not(true))); double lowLimit = 40; GuidanceSpeedData data1 = new GuidanceSpeedData(VELOCITY, lowLimit); assertThat(data1.isSpeeding(), is(true)); }
public boolean isSpeeding() { return mCurrentSpeed > mCurrentSpeedLimit && mCurrentSpeedLimit > 0; }
GuidanceSpeedData implements Parcelable { public boolean isSpeeding() { return mCurrentSpeed > mCurrentSpeedLimit && mCurrentSpeedLimit > 0; } }
GuidanceSpeedData implements Parcelable { public boolean isSpeeding() { return mCurrentSpeed > mCurrentSpeedLimit && mCurrentSpeedLimit > 0; } GuidanceSpeedData(Double speed, Double speedLimit); protected  GuidanceSpeedData(Parcel in); }
GuidanceSpeedData implements Parcelable { public boolean isSpeeding() { return mCurrentSpeed > mCurrentSpeedLimit && mCurrentSpeedLimit > 0; } GuidanceSpeedData(Double speed, Double speedLimit); protected  GuidanceSpeedData(Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); Double getCurrentSpeed(); Double getCurrentSpeedLimit(); boolean isSpeeding(); boolean isValid(); @NonNull @Override String toString(); @Override int hashCode(); @Override boolean equals(Object var1); }
GuidanceSpeedData implements Parcelable { public boolean isSpeeding() { return mCurrentSpeed > mCurrentSpeedLimit && mCurrentSpeedLimit > 0; } GuidanceSpeedData(Double speed, Double speedLimit); protected  GuidanceSpeedData(Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); Double getCurrentSpeed(); Double getCurrentSpeedLimit(); boolean isSpeeding(); boolean isValid(); @NonNull @Override String toString(); @Override int hashCode(); @Override boolean equals(Object var1); static final Creator<GuidanceSpeedData> CREATOR; }