Skip to content
Permalink
Browse files

Migrate from containsAllIn to containsAtLeastElementsIn.

The two behave identically, and containsAllIn is being removed.

More information:
  go/containsall-lsc

Tested:
    TAP --sample for global presubmit queue
    http://test/OCL:244737196:BASE:244782138:1555989861564:6e819fa
PiperOrigin-RevId: 244787452
  • Loading branch information...
cpovirk authored and Copybara-Service committed Apr 23, 2019
1 parent c12f5cf commit 1f23ef3c498bf8aeb3e13c8f45d559312148d1ef
@@ -85,7 +85,7 @@ private void assertLogLines() {

List<String> javaLogLines = extractJavaMessages();
for (ImmutableList<String> javaLogLineSequence : testResult.javaLogLinesSequences()) {
assertThat(javaLogLines).containsAllIn(javaLogLineSequence).inOrder();
assertThat(javaLogLines).containsAtLeastElementsIn(javaLogLineSequence).inOrder();
}
Iterable<String> allExpectedJavaLog = Iterables.concat(testResult.javaLogLinesSequences());
assertThat(javaLogLines).containsExactlyElementsIn(allExpectedJavaLog);

0 comments on commit 1f23ef3

Please sign in to comment.
You can’t perform that action at this time.