Blog Archives

Spring Controller Unit Testing

This Spring controller unit test is based on

HATEOAS RESTFul Service with Spring tutorial. The request URL and JSON response content are shown below.

REQUEST URL: http://localhost:8080/simpleSpring/greeting?name=John
RESPONSE JSON: {“content”:”Hello, …



Unit Testing Servlet filter with Mockito

This assumes that you have gone through the basic JUnit & Mockito tutorials. Here is test class to “Unit Testing Servlet Filter”. The “HttpServletRequest“, “HttpServletResponse“, “…



800+ Java Interview Questions answered

What can you do as a Java & Big Data Engineer?

Prepare to fast-track & go places
with multi-offers to choose from & increased earning potential. Expand your horizons along the way by taking the road less travelled.
Learn by categories on the go...
Learn by categories such as FAQs – Core Java, Key Area – Low Latency, Core Java – Java 8, JEE – Microservices, Big Data – NoSQL, etc. Some posts belong to multiple categories.
Top