Use fluent assertions
Gives a bit more information upon failures PiperOrigin-RevId: 451882968
This commit is contained in:
parent
40f5fb55cc
commit
9d460023a2
@ -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…
x
Reference in New Issue
Block a user