From: Niki Roo Date: Fri, 5 Oct 2018 12:44:14 +0000 (+0200) Subject: Collections.sort instead of non-java7 List.sort X-Git-Tag: fanfix-swing-0.0.1~21^2~188 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=50f310770d22891a915b0227ebfbd83674935aad;p=fanfix-swing.git Collections.sort instead of non-java7 List.sort --- diff --git a/src/be/nikiroo/utils/test/TestCase.java b/src/be/nikiroo/utils/test/TestCase.java index 2e46a7b5..0210e2fe 100644 --- a/src/be/nikiroo/utils/test/TestCase.java +++ b/src/be/nikiroo/utils/test/TestCase.java @@ -2,6 +2,7 @@ package be.nikiroo.utils.test; import java.io.File; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -405,9 +406,9 @@ abstract public class TestCase { expected.isDirectory(), actual.isDirectory()); List expectedFiles = Arrays.asList(expected.list()); - expectedFiles.sort(null); + Collections.sort(expectedFiles); List actualFiles = Arrays.asList(actual.list()); - actualFiles.sort(null); + Collections.sort(actualFiles); assertEquals(errorMessage, expectedFiles, actualFiles); for (int i = 0; i < actualFiles.size(); i++) {