Migrate from deprecated Truth methods to their new names.
- isSameAs -> isSameInstanceAs (and isNotSameAs -> isNotSameInstanceAs)
- containsAllOf -> containsAtLeast (and containsAllIn -> containsAtLeastElementsIn)
The new methods are available publicly in Truth 0.44.
@@ -210,7 +210,7 @@ public class TranspilerTester {
public TranspileResult assertErrorsContainsSnippets(String... snippets) {
assertThat(getProblems().getErrors())
.comparingElementsUsing(Correspondence.from(String::contains, "contained within"))
- .containsAllIn(Arrays.asList(snippets));
+ .containsAtLeastElementsIn(Arrays.asList(snippets));
return this;
}
