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

fix: which user name is used

SVN: 11373
parent 7126d151
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,9 @@ public class RealCrowdAuthenticationTest
final String token = as.authenticateApplication();
assertNotNull(token);
assertTrue(as.authenticateUser(token, NAME_OF_TEST_USER, PASSWORD_OF_TEST_USER));
final Principal p = as.getPrincipal(token, NAME_OF_TEST_APPLICATION);
final Principal p = as.getPrincipal(token, NAME_OF_TEST_USER);
assertNotNull(token);
assertEquals(NAME_OF_TEST_APPLICATION, p.getUserId());
assertEquals(NAME_OF_TEST_USER, p.getUserId());
System.out.println("firstName=" + p.getFirstName());
System.out.println("lastName=" + p.getLastName());
System.out.println("email=" + p.getEmail());
......
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