Java: Testing with JUnit
- Offered byLinkedin Learning
Java: Testing with JUnit at Linkedin Learning Overview
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
Java: Testing with JUnit at Linkedin Learning Course details
- 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