Skip to content
Snippets Groups Projects
Commit 1002ecd3 authored by brinn's avatar brinn
Browse files

minor: fix typo in method name

SVN: 7795
parent d2792708
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ public class FileAuthenticationService implements IAuthenticationService
{
throw new IllegalArgumentException("Cannot find user '" + user + "'.");
}
return userOrNull.asPrincial();
return userOrNull.asPrincipal();
}
public void check() throws EnvironmentFailureException, ConfigurationFailureException
......
......@@ -85,7 +85,7 @@ class UserEntry extends AbstractHashable
/**
* Returns the user entry as {@link Principal}.
*/
Principal asPrincial()
Principal asPrincipal()
{
return new Principal(getUserId(), getFirstName(), getLastName(), getEmail());
}
......
......@@ -126,7 +126,7 @@ public class FileAuthenticationServiceTest
will(returnValue(user));
}
});
assertEquals(user.asPrincial(), authService.getPrincipal(token, uid));
assertEquals(user.asPrincipal(), authService.getPrincipal(token, uid));
context.assertIsSatisfied();
}
......
......@@ -100,7 +100,7 @@ public class UserEntryTest
public void testAsPrincial()
{
final UserEntry entry = new UserEntry(PASSWORD_LINE);
final Principal principal = entry.asPrincial();
final Principal principal = entry.asPrincipal();
assertEquals("id", principal.getUserId());
assertEquals("First", principal.getFirstName());
assertEquals("Last", principal.getLastName());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment