mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Use fluent assertions
Gives a bit more information upon failures PiperOrigin-RevId: 451882968
This commit is contained in:
parent
40f5fb55cc
commit
9d460023a2
1 changed files with 2 additions and 2 deletions
|
|
@ -102,8 +102,8 @@ public final class FakeExtractorInput implements ExtractorInput {
|
||||||
* @param position The position to set.
|
* @param position The position to set.
|
||||||
*/
|
*/
|
||||||
public void setPosition(int position) {
|
public void setPosition(int position) {
|
||||||
assertThat(0 <= position).isTrue();
|
assertThat(position).isAtLeast(0);
|
||||||
assertThat(position <= data.length).isTrue();
|
assertThat(position).isAtMost(data.length);
|
||||||
readPosition = position;
|
readPosition = position;
|
||||||
peekPosition = position;
|
peekPosition = position;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue