fixed typo of "successful" in src and test

This commit is contained in:
David Key
2015-07-15 19:01:43 -04:00
parent 5e28e87f58
commit 9a9b5dc439
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ public class SunJaasKerberosTicketValidator implements KerberosTicketValidator,
return Subject.doAs(this.serviceSubject, new KerberosValidateAction(token));
}
catch (PrivilegedActionException e) {
throw new BadCredentialsException("Kerberos validation not succesful", e);
throw new BadCredentialsException("Kerberos validation not successful", e);
}
}

View File

@@ -73,7 +73,7 @@ public class SunJaasKerberosTicketValidatorTests {
public void testJdkMsKrb5OIDRegressionTweak() throws Exception {
thrown.expect(BadCredentialsException.class);
thrown.expectMessage(not(containsString("GSSContext name of the context initiator is null")));
thrown.expectMessage(containsString("Kerberos validation not succesful"));
thrown.expectMessage(containsString("Kerberos validation not successful"));
SunJaasKerberosTicketValidator validator = new SunJaasKerberosTicketValidator();
byte[] kerberosTicket = Base64.decode(header.getBytes());
validator.validateTicket(kerberosTicket);