Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed signature of method containsInAnyOrder to allow avoid calling… #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 11, 2019

  1. Changed signature of method containsInAnyOrder to allow avoid calling…

    … toArray() method or casting to array and build next construction
    
    List<String> actual = Arrays.asList("a", "b", "c");
    List<String> expected = Arrays.asList("a", "c");
    assertThat(list, containsInAnyOrder(expected))
    
    Some results from internet with reccomendations to call toArray():
    https://stackoverflow.com/questions/21624592/hamcrest-compare-collections
    http://haroonzone.github.io/comparing-lists-with-hamcrest/ (ListMatcher2.java)
    yatsenko-ihor committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    bd1268f View commit details
    Browse the repository at this point in the history