AssertEquals 2 Lists ignore order
问题 That should be really simple question I believe. But somehow I can\'t find answer in Google. Assume that I have 2 Lists of Strings. First contains \"String A\" and \"String B\" , second one contains \"String B\" and \"String A\" (notice difference in order). I want to test them with JUnit to check whether they contains exactly the same Strings. Is there any assert that checks equality of Strings that ignore order? For given example org.junit.Assert.assertEquals throws AssertionError java.lang