Как я могу сделать утверждение равенства между списками в тестовом примере JUnit? Между содержимым списка должно быть равенство.
Например:
List numbers = Arrays.asList("one", "two", "three");
List numbers2 = Arrays.asList("one", "two", "three");
List numbers3 = Arrays.asList("one", "two", "four");
// numbers should be equal to numbers2
//numbers should not be equal to numbers3
Подробнее здесь: https://stackoverflow.com/questions/323 ... s-in-junit