Commit 67408ca7 by ibaker Committed by Oliver Woodman

Fix var-args warning in DownloadManagerTest

From Truth docs:
"To test that the iterable contains the same elements as an array,
prefer containsExactlyElementsIn(Object[]). It makes clear that the
given array is a list of elements, not an element itself. This helps
human readers and avoids a compiler warning."
https://truth.dev/api/1.0.1/com/google/common/truth/IterableSubject.html#containsExactly-java.lang.Object...-

PiperOrigin-RevId: 323367341
parent fda3b3d8
......@@ -909,7 +909,7 @@ public class DownloadManagerTest {
}
public void assertStreamKeys(StreamKey... streamKeys) {
assertThat(request.streamKeys).containsExactly(streamKeys);
assertThat(request.streamKeys).containsExactlyElementsIn(streamKeys);
}
public void assertDownloadStarted() throws InterruptedException {
......
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