如何在 JUnit 测试用例中判断 2 个列表是否相等? 我指的是列表中的内容之间是否相等。
例如:
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