From 0da5e5a3aafa90d15658d76e903b67d6274f571b Mon Sep 17 00:00:00 2001 From: Cyril Dangerville <1372580+cdanger@users.noreply.github.com> Date: Wed, 22 May 2024 05:22:40 +0200 Subject: [PATCH] Simplified code --- .../pdp/server/AuthZenPdpServerAccessEvaluationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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