Minor: fix code climate config test
This commit is contained in:
parent
99ef874327
commit
94cf310d5b
@ -24,7 +24,7 @@ public class CodeClimateConfigTest {
|
|||||||
public void shouldHaveExistingClassesInExclusions() {
|
public void shouldHaveExistingClassesInExclusions() {
|
||||||
// given / when
|
// given / when
|
||||||
FileConfiguration configuration = YamlConfiguration.loadConfiguration(new File(CONFIG_FILE));
|
FileConfiguration configuration = YamlConfiguration.loadConfiguration(new File(CONFIG_FILE));
|
||||||
List<String> excludePaths = configuration.getStringList("exclude_paths");
|
List<String> excludePaths = configuration.getStringList("exclude_patterns");
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(excludePaths, not(empty()));
|
assertThat(excludePaths, not(empty()));
|
||||||
@ -49,7 +49,7 @@ public class CodeClimateConfigTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void removeTestsExclusionOrThrow(List<String> excludePaths) {
|
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",
|
assertThat("Expected an exclusion for test classes",
|
||||||
wasRemoved, equalTo(true));
|
wasRemoved, equalTo(true));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user