From 94cf310d5b51479cd639f1ee425128044cd96e66 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 6 Jan 2018 18:06:30 +0100 Subject: [PATCH] Minor: fix code climate config test --- src/test/java/fr/xephi/authme/CodeClimateConfigTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java b/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java index d69093b2b..7eff3a72d 100644 --- a/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java +++ b/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java @@ -24,7 +24,7 @@ public class CodeClimateConfigTest { public void shouldHaveExistingClassesInExclusions() { // given / when FileConfiguration configuration = YamlConfiguration.loadConfiguration(new File(CONFIG_FILE)); - List excludePaths = configuration.getStringList("exclude_paths"); + List excludePaths = configuration.getStringList("exclude_patterns"); // then assertThat(excludePaths, not(empty())); @@ -49,7 +49,7 @@ public class CodeClimateConfigTest { } private static void removeTestsExclusionOrThrow(List excludePaths) { - boolean wasRemoved = excludePaths.removeIf("src/test/java/**Test.java"::equals); + boolean wasRemoved = excludePaths.removeIf("src/test/java/**/*Test.java"::equals); assertThat("Expected an exclusion for test classes", wasRemoved, equalTo(true)); }