Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. principal = runAs.getCheckedCallerPrincipal();
  2. /** Because a run-as annotation would switch the caller context. So unless
  3. * a run as principal is configured by the bean provider, an anonymous
  4. * caller principal is seen.
  5. */
  6. //assertEquals("somebody", principal);
  7. assertEquals("anonymous", principal);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement