Minor: fix code climate config test

This commit is contained in:
ljacqu 2018-01-06 18:06:30 +01:00
parent 99ef874327
commit 94cf310d5b

View File

@ -24,7 +24,7 @@ public class CodeClimateConfigTest {
public void shouldHaveExistingClassesInExclusions() {
// given / when
FileConfiguration configuration = YamlConfiguration.loadConfiguration(new File(CONFIG_FILE));
List<String> excludePaths = configuration.getStringList("exclude_paths");
List<String> excludePaths = configuration.getStringList("exclude_patterns");
// then
assertThat(excludePaths, not(empty()));
@ -49,7 +49,7 @@ public class CodeClimateConfigTest {
}
private static void removeTestsExclusionOrThrow(List<String> 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));
}