@Test public void convertMillisecondsToSecondsRoundedUp_shouldReturnLongMillisecondsAsRoundedUpLongSeconds() throws Exception { assertThat(subject.convertMillisecondsToSecondsRoundedUp(0)).isEqualTo(0); assertThat(subject.convertMillisecondsToSecondsRoundedUp(1)).isEqualTo(1); assertThat(subject.convertMillisecondsToSecondsRoundedUp(999)).isEqualTo(1); assertThat(subject.convertMillisecondsToSecondsRoundedUp(1000)).isEqualTo(1); assertThat(subject.convertMillisecondsToSecondsRoundedUp(1001)).isEqualTo(2); assertThat(subject.convertMillisecondsToSecondsRoundedUp(100000)).isEqualTo(100); }
@VisibleForTesting long convertMillisecondsToSecondsRoundedUp(final long millis) { return Math.round(Math.ceil(millis / 1000f)); }
VastVideoToolbar extends LinearLayout { @VisibleForTesting long convertMillisecondsToSecondsRoundedUp(final long millis) { return Math.round(Math.ceil(millis / 1000f)); } }
VastVideoToolbar extends LinearLayout { @VisibleForTesting long convertMillisecondsToSecondsRoundedUp(final long millis) { return Math.round(Math.ceil(millis / 1000f)); } VastVideoToolbar(final Context context); }
VastVideoToolbar extends LinearLayout { @VisibleForTesting long convertMillisecondsToSecondsRoundedUp(final long millis) { return Math.round(Math.ceil(millis / 1000f)); } VastVideoToolbar(final Context context);  }
VastVideoToolbar extends LinearLayout { @VisibleForTesting long convertMillisecondsToSecondsRoundedUp(final long millis) { return Math.round(Math.ceil(millis / 1000f)); } VastVideoToolbar(final Context context);   }