Linkedin Learning
Linkedin Learning Logo

Java: Testing with JUnit 

  • Offered byLinkedin Learning

Java: Testing with JUnit
 at 
Linkedin Learning 
Overview

Java developers need to write unit tests, and JUnit is the main unit testing framework for Java

Duration

2 hours

Total fee

1,400

Mode of learning

Online

Difficulty level

Intermediate

Credential

Certificate

Java: Testing with JUnit
 at 
Linkedin Learning 
Highlights

  • Earn a certificate of completion from LinkedIn Learning
Details Icon

Java: Testing with JUnit
 at 
Linkedin Learning 
Course details

Skills you will learn
More about this course
  • In this course, trainer and developer Maaike van Putten helps you learn to test your Java code effectively. Maaike explains what unit testing is and the advantages that it offers
  • She covers JUnit and shows you how to set it up and run your first test
  • Maaike steps through the process of writing a basic test, including useful tools like JUnit Annotations, JUnit Write, JUnit DisplayName, and more
  • She goes over more advanced uses of JUnit, such as dependency injection, parameterized tests, and timeouts, to name a few
  • Maaike finishes up with a quick peek at next steps you can take, like how to make code ready for unit testing, best practices, and a brief overview of Mockito

Java: Testing with JUnit
 at 
Linkedin Learning 
Curriculum

Introduction

Create proper unit tests in Java

What should you know

Unit testing and other types of testing

TDD: Test-driven development

Advantages of unit testing

What is JUnit?

Getting Started with JUnit

Quick example of a basic unit test

Setting up JUnit for IntelliJ

Setting up JUnit for VS Code

Setting up JUnit for Eclipse

Your first test: HelloJUnit

Writing Basic Tests with JUnit

Annotations

Write and run test classes and methods

DisplayName

Assertions

Assumptions

Test execution order

Nested tests

More Advanced Usage of JUnit

Dependency injection in your tests

Repeated tests

Parameterized tests

Timeouts

Parallel execution

Lifecyle control: Before and after

Custom messages and reports

Conditional test execution

Disabling unit tests

Quick Peek at Next Steps

How to make code ready for unit testing

Best practices

Mockito

Conclusion

Next steps with JUnit

Faculty Icon

Java: Testing with JUnit
 at 
Linkedin Learning 
Faculty details

Maaike van Putten
She help people boost their careers by helping them understand IT better or by training them so they can switch to an IT career from another profession.

Other courses offered by Linkedin Learning

– / –
1 hours
Intermediate
25 K
1 month
– / –
899
1 hours
Intermediate
– / –
1 hours
Advanced
View Other 504 CoursesRight Arrow Icon
qna

Java: Testing with JUnit
 at 
Linkedin Learning 

Student Forum

chatAnything you would want to ask experts?
Write here...