Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- principal = runAs.getCheckedCallerPrincipal();
- /** Because a run-as annotation would switch the caller context. So unless
- * a run as principal is configured by the bean provider, an anonymous
- * caller principal is seen.
- */
- //assertEquals("somebody", principal);
- assertEquals("anonymous", principal);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement