junit list order

    Junit5 AssertJ List 정렬 테스트 ( Check if list is sorted in junit)

    Junit5 AssertJ List 정렬 테스트 ( Check if list is sorted in junit) JUnit5 에서 assertJ의 Assertions를 이용하여 List가 정렬되었는지 테스트 할 수 있다. isSorted() 메서드 isSortedAccordingTo(Comparator comparator) 메서드 docs : https://assertj.github.io/doc/ https://www.baeldung.com/introduction-to-assertj https://javadoc.io/doc/org.assertj/assertj-core/latest/org/assertj/core/api/ListAssert.html https://javadoc.io/doc/org.assert..