Commit d1c3b051 by aquilescanta Committed by Marc Baechinger

Use fluent assertions

Gives a bit more information upon failures

PiperOrigin-RevId: 451882968
parent d411461d
...@@ -100,8 +100,8 @@ public final class FakeExtractorInput implements ExtractorInput { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment