Use fluent assertions
Gives a bit more information upon failures PiperOrigin-RevId: 451882968
This commit is contained in:
parent
d411461dfa
commit
d1c3b05145
@ -100,8 +100,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