In this course, you will embark on a journey to master unit testing using Mockito and Spring Boot. Starting with an introduction to Mockito, you'll learn how to set up your projects using Spring Initializr and write your first unit tests. As you progress, you'll delve deeper into creating business services, utilizing stubs, and updating tests to use Mockito effectively.
Give your career the gift of Coursera Plus with $160 off, billed annually. Save today.
Master Java Unit Testing with Spring Boot and Mockito
Instructor: Packt - Course Instructors
Included with
Recommended experience
What you'll learn
Set up Spring Boot projects with unit testing capabilities
Write effective unit tests using Mockito
Implement advanced mocking techniques for complex scenarios
Improve test coverage and performance with practical tips
Skills you'll gain
Details to know
Add to your LinkedIn profile
September 2024
1 assignment
See how employees at top companies are mastering in-demand skills
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
There are 4 modules in this course
In this module, we will introduce the course, outlining its goals and structure. You will gain an understanding of the importance of unit testing and the key technologies we will cover, including Spring Boot and Mockito.
What's included
2 videos1 reading
In this module, we will dive into mocking with Mockito, starting with setting up a Spring Boot project. You will learn to write unit tests for business services, explore the use of stubs and mocks, and master Mockito annotations and techniques for effective mocking.
What's included
16 videos
In this module, we will cover unit testing with Spring Boot and Mockito, focusing on creating and testing RESTful services. You will write unit tests for various application layers, explore integration testing, and enhance test assertions using advanced libraries like Hamcrest and AssertJ.
What's included
28 videos
In this module, we will discuss the next steps after completing the course. You will be guided towards additional resources for further learning, explore advanced unit testing topics, and reflect on how to apply your newly acquired skills in real-world scenarios.
What's included
1 video1 assignment
Instructor
Offered by
Recommended if you're interested in Software Development
University of Minnesota
Why people choose Coursera for their career
New to Software Development? Start here.
Open new doors with Coursera Plus
Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.