JAAS / Kerberos / Digest stub with Mockito

You need to test the functionality of method X. It does the following things: Performs authentication using JAAS; If authentication is successful, it continues to work. It’s often problematic to set up a working authentication mechanism in a unit test environment. One solution to the problem is to set a stub on the login() method […]

READ MORE