diff --git a/modules/gplazma2-banfile/src/test/java/org/dcache/gplazma/plugins/BanFilePluginTest.java b/modules/gplazma2-banfile/src/test/java/org/dcache/gplazma/plugins/BanFilePluginTest.java index 51c7d28e1cd..859d512d7c7 100644 --- a/modules/gplazma2-banfile/src/test/java/org/dcache/gplazma/plugins/BanFilePluginTest.java +++ b/modules/gplazma2-banfile/src/test/java/org/dcache/gplazma/plugins/BanFilePluginTest.java @@ -146,8 +146,8 @@ public void shouldFailOnMalformedAliasLine() throws IOException, AuthenticationE plugin.account(Set.of(new UserNamePrincipal("bert"))); } - @Test(expected = AuthenticationException.class) - public void shouldBanAllIfConfigDeleted() throws IOException, AuthenticationException { + @Test + public void shouldAllowAllIfConfigDeleted() throws IOException, AuthenticationException { givenConfig(""); Files.deleteIfExists(configFile); plugin.account(Set.of(new UserNamePrincipal("bert")));