mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +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.
|
||||
*/
|
||||
public void setPosition(int position) {
|
||||
assertThat(0 <= position).isTrue();
|
||||
assertThat(position <= data.length).isTrue();
|
||||
assertThat(position).isAtLeast(0);
|
||||
assertThat(position).isAtMost(data.length);
|
||||
readPosition = position;
|
||||
peekPosition = position;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue