Spring is a provider of web application development and management services. The company was acquired by VMWare in 2009.
With our first unit test case, we got unauthorized status back from the controller since we never passed default username and password in the request.
Our second unit test case divided into two parts
In the first request, we passed username and password to the controller and got success response from the controller.
For the second request, we passed the same cookie in the request without passing username and password.
We compared the session id returned in both the request and found those equal.
We compared the session id returned in both the request and found those equal.
For the second request, we passed the same cookie in the request without passing username and password.
In the first request, we passed username and password to the controller and got success response from the controller.
Our second unit test case divided into two parts
With our first unit test case, we got unauthorized status back from the controller since we never passed default username and password in the request.
Let’s see what we are trying to do with our unit test case.