Hi
In my resources I access a SecurityContext through @Context. That works
in deployment but not during unit tests. In my unit tests I add
HTTPBasicAuthFilter to the web resource but
SecurityContext#getUserPrincipal() always returns null. I assume this is
because the security constraints and login config are not set but I have
no idea how to set them.
Cheers
Philippe