diff --git a/pdp-server/src/test/java/org/ow2/authzforce/authzen/pdp/server/AuthZenPdpServerAccessEvaluationTest.java b/pdp-server/src/test/java/org/ow2/authzforce/authzen/pdp/server/AuthZenPdpServerAccessEvaluationTest.java index 51ef7f7..4846631 100644 --- a/pdp-server/src/test/java/org/ow2/authzforce/authzen/pdp/server/AuthZenPdpServerAccessEvaluationTest.java +++ b/pdp-server/src/test/java/org/ow2/authzforce/authzen/pdp/server/AuthZenPdpServerAccessEvaluationTest.java @@ -72,9 +72,9 @@ public static void setup() @LocalServerPort private int port; - private static Stream getTestDirectories() throws Exception { - File[] test0Dirs = new File("..").listFiles(); - return Stream.of(TEST_ROOT_DIRS).flatMap(testRootDir -> Stream.of(new File(testRootDir).listFiles()).filter(f -> f.isDirectory()).map(Arguments::of)); + private static Stream getTestDirectories() + { + return Stream.of(TEST_ROOT_DIRS).flatMap(testRootDir -> Stream.of(new File(testRootDir).listFiles()).filter(File::isDirectory).map(Arguments::of)); } @ParameterizedTest