mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +01:00
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() {
|
||||
// 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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user