Skip to content

Commit

Permalink
rename test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoten committed Jan 16, 2025
1 parent 8ef146b commit 00ab898
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
public class PlainAuthenticationHandlerFactoryTest {

@Test
public void test() throws RejectException {
MessageContext context = Mockito.mock(MessageContext.class);
public void testBadBase64String() throws RejectException {
UsernamePasswordValidator validator = (username, password, c) -> {
if (!username.equals("fred") || !password.equals("blah")) {
throw new LoginFailedException();
}
};
AuthenticationHandler auth = new PlainAuthenticationHandlerFactory(validator).create();
MessageContext context = Mockito.mock(MessageContext.class);
try {
auth.auth("AUTH PLAIN b", context);
Assert.fail();
Expand Down

0 comments on commit 00ab898

Please sign in to comment.