@TargetApi(HONEYCOMB) public DatePickerAssert hasMinDate(long date) { isNotNull(); long actualDate = actual.getMinDate(); assertThat(actualDate) // .overridingErrorMessage("Expected min date <%s> but was <%s>.", date, actualDate) // .isEqualTo(date); return this; }
@TargetApi(JELLY_BEAN) public S hasEventTime(long time) { isNotNull(); long actualTime = actual.getEventTime(); assertThat(actualTime) // .overridingErrorMessage("Expected time <%s> but was <%s>", time, actualTime) // .isEqualTo(time); return myself; }
@TargetApi(ICE_CREAM_SANDWICH) public ViewPropertyAnimatorAssert hasStartDelay(long delay) { isNotNull(); long actualDelay = actual.getStartDelay(); assertThat(actualDelay) // .overridingErrorMessage("Expected start delay <%s> but was <%s>", delay, actualDelay) // .isEqualTo(delay); return this; } }
public ExpandableListViewAssert hasSelectedId(long id) { isNotNull(); long actualId = actual.getSelectedId(); assertThat(actualId) // .overridingErrorMessage("Expected selected ID <%s> but was <%s>.", id, actualId) // .isEqualTo(id); return this; }
public ExpandableListViewAssert hasSelectedPosition(long position) { isNotNull(); long actualPosition = actual.getSelectedPosition(); assertThat(actualPosition) // .overridingErrorMessage("Expected selected position <%s> but was <%s>.", position, actualPosition) // .isEqualTo(position); return this; } }
public RecyclerViewItemAnimatorAssert hasAddDuration(long duration) { isNotNull(); long actualDuration = actual.getAddDuration(); assertThat(actualDuration) // .overridingErrorMessage("Expected add duration <%s> but was <%s>.", duration, actualDuration) // .isEqualTo(duration); return this; }
public RecyclerViewItemAnimatorAssert hasRemoveDuration(long duration) { long actualDuration = actual.getRemoveDuration(); assertThat(actualDuration) // .overridingErrorMessage("Expected remove duration <%s> but was <%s>.", duration, actualDuration) // .isEqualTo(duration); isNotNull(); return this; }
public S hasStartOffset(long offset) { isNotNull(); long actualOffset = actual.getStartOffset(); assertThat(actualOffset) // .overridingErrorMessage("Expected start offset <%s> but was <%s>.", offset, actualOffset) // .isEqualTo(offset); return myself; }
public S hasStartTime(long time) { isNotNull(); long actualTime = actual.getStartTime(); assertThat(actualTime) // .overridingErrorMessage("Expected start time <%s> but was <%s>.", time, actualTime) // .isEqualTo(time); return myself; }
public CalendarViewAssert hasMinDate(long date) { isNotNull(); long actualDate = actual.getMinDate(); assertThat(actualDate) // .overridingErrorMessage("Expected min date <%s> but was <%s>.", date, actualDate) // .isEqualTo(date); return this; }
public LocationRequestAssert hasInterval(long interval) { isNotNull(); long actualInterval = actual.getInterval(); assertThat(actualInterval) // .overridingErrorMessage("Expected interval <%s> but was <%s>.", interval, actualInterval) // .isEqualTo(interval); return this; }
public ChronometerAssert hasBase(long base) { isNotNull(); long actualBase = actual.getBase(); assertThat(actualBase) // .overridingErrorMessage("Expected base time <%s> but was <%s>.", base, actualBase) // .isEqualTo(base); return this; }
public ActivityRecognitionResultAssert hasElapsedRealtimeMillis(long millis) { isNotNull(); long actualMillis = actual.getElapsedRealtimeMillis(); assertThat(actualMillis) // .overridingErrorMessage("Expected elapsed realtime millis <%s> but was <%s>.", millis, actualMillis) // .isEqualTo(millis); return this; }
public ActivityRecognitionResultAssert hasTime(long time) { isNotNull(); long actualTime = actual.getTime(); assertThat(actualTime) // .overridingErrorMessage("Expected time <%s> but was <%s>.", time, actualTime) // .isEqualTo(time); return this; } }
public S hasSelectedItemId(long id) { isNotNull(); long actualId = actual.getSelectedItemId(); assertThat(actualId) // .overridingErrorMessage("Expected selected item ID <%s> but was <%s>.", id, actualId) // .isEqualTo(id); return myself; }
public S hasDuration(long duration) { isNotNull(); long actualDuration = actual.getDuration(); assertThat(actualDuration) // .overridingErrorMessage("Expected duration <%s> but was <%s>.", duration, actualDuration) // .isEqualTo(duration); return myself; }
public ListFragmentAssert hasSelectedItemPosition(int position) { isNotNull(); long actualPosition = actual.getSelectedItemPosition(); assertThat(actualPosition) // .overridingErrorMessage("Expected selected position <%s> but was <%s>.", position, actualPosition) // .isEqualTo(position); return this; } }
public MediaSessionStatusAssert hasTimestamp(long timestamp) { isNotNull(); long actualTimestamp = actual.getTimestamp(); assertThat(actualTimestamp) // .overridingErrorMessage("Expected timestamp <%s> but was <%s>.", timestamp, actualTimestamp) // .isEqualTo(timestamp); return this; }
public MediaControllerCompatAssert hasBufferPosition(long position) { isNotNull(); long actualPosition = actual.getPlaybackState().getBufferedPosition(); assertThat(actualPosition) // .overridingErrorMessage("Expected buffer position <%s> but was <%s>.", position, actualPosition) // .isEqualTo(position); return this; }
public MediaControllerCompatAssert hasActions(long flags) { isNotNull(); long actualFlags = actual.getPlaybackState().getActions(); assertThat(actualFlags) // .overridingErrorMessage("Expected control flags <%s> but was <%s>.", actionsToString(flags), actionsToString(actualFlags)) // .isEqualTo(flags); return this; }