Master Java Unit Testing with Spring Boot and Mockito [Video]

4 (1 reviews total)
By In28Minutes Official
    What do you get with a Packt Subscription?

  • Instant access to this title and 7,500+ eBooks & Videos
  • Constantly updated with 100+ new titles each month
  • Breadth and depth in over 1,000+ technologies
  1. Free Chapter
About this video

Spring Boot is the most popular framework to develop RESTful services. It has awesome unit testing capabilities through the Spring Boot Starter Test. Mockito is the most popular mocking framework. JUnit is the most popular Java unit testing framework. You will build the unit tests step by step (in 40 easy steps).

This course would be a perfect first step as an introduction to unit testing with the Spring Boot and Mockito frameworks. You will be using Spring (dependency management), Spring Boot, Maven (dependency management), Eclipse (IDE), in-memory database H2 and Tomcat embedded web server. We will help you set up each one of these. You will use all the frameworks that are part of the Spring Boot Starter Test: JUnit, Spring Test, Spring Boot Test, AssertJ, Hamcrest, Mockito, JSONassert, and JSONPath. You will also learn how to use the most important unit testing annotations: @RunWith(SpringRunner.class), @SpringBootTest, @WebMvcTest, @DataJpaTest, and @MockBean.

By the end of this course, you will be able to write awesome unit tests for your RESTful services.

The code files and resource files are uploaded on the GitHub repository at

Publication date:
May 2018
3 hours 55 minutes

About the Author
  • In28Minutes Official

    Ranga Karanam of in28Minutes fame is an architect with 15 years of Java programming and design experience with major banking clients across the world. He started in28Minutes with the aim of creating hands-on courses with real-world projects. The Step-By-Step series of courses is one of his creations. They use a problem-solution-based step-by-step approach with practical and real-world application examples.

    Their primary expertise is in the development, design, and architecture of Java and related frameworks (Spring, Spring Boot, Spring MVC, Struts, Hibernate). All their code is open source and available on GitHub. They use the 80-20 rule, touching upon other things to briefly equip you with enough knowledge to find out more on your own.

    Browse publications by this author
Latest Reviews (1 reviews total)
The experience of reading and watching video is not really good.
Master Java Unit Testing with Spring Boot and Mockito [Video]
Unlock this video and the full library FREE for 7 days
Start now