Disclosure: when you buy through links on our site, we may earn an affiliate commission.

Testing Java with JUnit 5 & Mockito

Learn to test Java applications with JUnit 5 and Mockito
(11 reviews)
142 students
Created by


CourseMarks Score®







Platform: Udemy
Video: 4h 51m
Language: English
Next start: On Demand

Top JUnit courses:

Detailed Analysis

CourseMarks Score®

9.5 / 10

CourseMarks Score® helps students to find the best classes. We aggregate 18 factors, including freshness, student feedback and content diversity.

Freshness Score

10.0 / 10
This course was last updated on 6/2022.

Course content can become outdated quite quickly. After analysing 71,530 courses, we found that the highest rated courses are updated every year. If a course has not been updated for more than 2 years, you should carefully evaluate the course before enrolling.

Student Feedback

8.9 / 10
We analyzed factors such as the rating (4.7/5) and the ratio between the number of reviews and the number of students, which is a great signal of student commitment.

New courses are hard to evaluate because there are no or just a few student ratings, but Student Feedback Score helps you find great courses even with fewer reviews.

Content Score

9.1 / 10
Video Score: 8.3 / 10
The course includes 4h 51m video content. Courses with more videos usually have a higher average rating. We have found that the sweet spot is 16 hours of video, which is long enough to teach a topic comprehensively, but not overwhelming. Courses over 16 hours of video gets the maximum score.
Detail Score: 9.1 / 10

The top online course contains a detailed description of the course, what you will learn and also a detailed description about the instructor.

Extra Content Score: 9.9 / 10

Tests, exercises, articles and other resources help students to better understand and deepen their understanding of the topic.

This course contains:

2 articles.
5 resources.
0 exercise.
0 test.

Table of contents


Unit Testing is a must-have skill and this video course is about unit testing.
If you take this video course, you will learn how to test your Java code using JUnit 5 and Mockito framework.
This video course is for beginners and you do not need to have any prior Unit testing knowledge to enrol into this course.

JUnit 5 in Different Java projects
There are different Java projects, build tools and development environments. In this course, you will learn how to create a new project and configure JUnit 5 support for different types of projects, using different development environments and build tools.
You will learn how to create Unit test in: 

•IntelliJ IDEA and
•Eclipse Development environments.
You will learn how to create Unit test in: 

•Regular Java project,
•Maven-based Java project,
•Cradle-based Java project.

Course Overview
This video course teaches Unit testing with Java from the very beginning and covers many advanced topics as well. By the end of this course, you will learn:

•JUnit 5 basics, and
•JUnit 5 advanced topics
Once you become familiar with JUnit 5, you will learn to use:

•Test-Driven Development(TDD)
You will then learn to use another very popular Test framework for Java called: 


By the end of this course you will learn and be able to use all of the following: 

•Create Unit Tests in IntelliJ,
•Create Unit Tests in Eclipse,
•Run unit tests using Gradle,
•Run Unit Tests using Maven,
•Use @DisplayName annotation,
•Use JUnit assertions,
•Test for Exceptions,
•Use Lifecycle methods (@BeforeAll, @BeforeEach, @AfterEach, @AfterAll),
•Run unit tests in any order you need: (Random, Order by Name, Order by Index),
•Disable Unit test,
•Repeated Tests with @RepeatedTest annotation,
•Parameterized tests with @Parameterized annotation
•Change Test Instance lifecycle with @TestInstance (PER_CLASS, PER_METHOD)
•Learn to Mock objects with Mockito’s @Mock annotation,
•Learn to user Mockito’s argument matches,
•Mockito method stubbing,
•Mockito Exception stubbing,
•Verify method call,
•Call Real Method,
•Do nothing when method is called,
•and more…

You will learn

✓ Learn JUnit 5
✓ Learn to test Java code with JUnit 5
✓ Learn Mockito
✓ Learn to test Java code with Mockito
✓ Learn Test Driven Development (TDD)


• Basic knowledge of Java

This course is for

• Java developers interested in learning how to test Java applications with JUnit 5

How much does the Testing Java with JUnit 5 & Mockito course cost? Is it worth it?

The course costs $14.99. And currently there is a 25% discount on the original price of the course, which was $19.99. So you save $5 if you enroll the course now.

Does the Testing Java with JUnit 5 & Mockito course have a money back guarantee or refund policy?

YES, Testing Java with JUnit 5 & Mockito has a 30-day money back guarantee. The 30-day refund policy is designed to allow students to study without risk.

Are there any SCHOLARSHIPS for this course?

Currently we could not find a scholarship for the Testing Java with JUnit 5 & Mockito course, but there is a $5 discount from the original price ($19.99). So the current price is just $14.99.

Who is the instructor? Is Sergey Kargopolov a SCAM or a TRUSTED instructor?

Sergey Kargopolov has created 9 courses that got 17,205 reviews which are generally positive. Sergey Kargopolov has taught 132,169 students and received a 4.6 average review out of 17,205 reviews. Depending on the information available, Sergey Kargopolov is a TRUSTED instructor.
Software developer
I have more than 20 years of experience in building different types of software. I started my career as an Entrepreneur with award-winning web projects and currently, I’m a Full Stack Developer with a passion for teaching beginner programmers to reach their goals and assisting them in the development of their applications.
Follow me on Twitter, LinkedIn or Instagram to stay in touch ?.
Happy learning!


CourseMarks Score®







Platform: Udemy
Video: 4h 51m
Language: English
Next start: On Demand

Students are also interested in

Review widget (for course creators):

Testing Java with JUnit 5 & Mockito rating
Code for the widget (just copy and paste it to your site):
<a href="https://coursemarks.com/course/testing-java-with-junit-5-mockito/" target="_blank" title="Testing Java with JUnit 5 & Mockito on Coursemarks.com"><img border="0" src="https://coursemarks.com/widget/95.svg" width="200px" alt="Testing Java with JUnit 5 & Mockito rating"/></a>