12
Junit에서 2 개의 목록 사이에 Assert가 동일
JUnit 테스트 케이스 에서 목록 사이에 동등 어설 션을 어떻게 만들 수 있습니까? 평등은 목록의 내용 사이에 있어야합니다. 예를 들면 다음과 같습니다. List<String> numbers = Arrays.asList("one", "two", "three"); List<String> numbers2 = Arrays.asList("one", "two", "three"); List<String> numbers3 = Arrays.asList("one", "two", "four"); // numbers should be equal to numbers2 //numbers should not …