Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to Java unit testing with JUnit5 framework
Rating: 4.2 out of 5(36 ratings)
7,141 students

Introduction to Java unit testing with JUnit5 framework

Hands-on experience with JUnit5 for absolute beginners
Last updated 4/2020
English

What you'll learn

  • JUnit5 framework basics
  • How to create unit tests for a given class
  • How to run unit tests
  • How to interpret results of unit tests
  • How to make changes in the class code and/or unit tests to fix failing tests
  • How to find out whether all methods are covered by unit tests

Course content

2 sections9 lectures1h 13m total length
  • Course introduction3:40

    In this introduction lecture we will talk about topics which are covered in this course. Presentation is also available for download in the resource section

  • Why do we need unit testing6:48

    In this lecture we will discuss why unit testing is so important and we should create a test class for each and every class in our application. Presentation is also available for download in the resource section

  • First unit test creation10:36

    In this lecture we will define our first unit test using JUnit5 framework for a simple Java class

Requirements

  • Java8+ basic concepts and hands-on experience
  • Basic knowledge of Intellij Idea IDE

Description

In this course you will be guided through the basics of Java unit testing using JUnit5 framework. You do not need to have any prior JUnit experience or knowledge to take this course.  All you need to have - willingness to learn some new exiting things about unit testing on Java using JUnit5 framework and some time to write unit tests along with me.


Some basic Java knowledge is required, you need to be familiar with some basic concepts like class, method, variables, objects, etc.


Java 11 LTS is used in this course and examples are shown in IntelliJ IDEA. But all taught content will work fine on later versions of Java.


We will define a basic Java class and for each method of this class we will create unit tests, so we could be sure everything works as it should.

The most important topics covered in this course includes

  • Explanation why we should include unit tests in each our application

  • How to define a test class, where all unit tests will reside

  • Important annotations used in test classes

  • How to interpret unit tests results

  • How to fix failed tests

I hope you will really enjoy opening for yourself a new entertaining world of unit testing on Java!

Who this course is for:

  • Java developers of all levels with no prior knowledge in unit testing