diff --git a/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java b/src/test/java/fr/xephi/authme/CodeClimateConfigTest.java index d69093b2..7eff3a72 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)); }