Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 930-captcha-for-register

This commit is contained in:
ljacqu
2018-01-06 19:04:14 +01:00
2 changed files with 45 additions and 31 deletions
@@ -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));
}