Java: Testing with JUnit
Offered By: LinkedIn Learning
Course Description
Overview
Learn how to use JUnit, a powerful open-source testing tool for testing Java.
Syllabus
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?
- 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
- Annotations
- Write and run test classes and methods
- DisplayName
- Assertions
- Assumptions
- Test execution order
- Nested tests
- 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
- How to make code ready for unit testing
- Best practices
- Mockito
- Next steps with JUnit
Taught by
Maaike van Putten
Related Courses
Java Workshop - Einführung in die Testgetriebene Entwicklung mit JUnitopenHPI Engineering Maintainable Android Apps
Vanderbilt University via Coursera Software Construction: Data Abstraction
The University of British Columbia via edX Software Design Methods and Tools
University of Colorado System via Coursera Software Development
The University of British Columbia via edX