JUnit5

JUnit5
This course covers everything you need to know about JUnit5 (architecture and features), with examples and exercises to help participants practice everything they learned.
12 hours
Online
English
JVA-067
JUnit5
Sign Up
Duration
12 hours
Location
Online
Language
English
Code
JVA-067
Schedule and prices
€ 350 *
Training for 7-8 or more people? Customize trainings for your specific needs
JUnit5
Sign Up
Duration
12 hours
Location
Online
Language
English
Code
JVA-067
Schedule and prices
€ 350 *
Training for 7-8 or more people? Customize trainings for your specific needs

Description

This course covers everything you need to know about JUnit5 (architecture and features), with examples and exercises to help participants practice everything they learned. During the course they will also have the opportunity to write their own applications applying the TDD principles and using JUnit5 - the most commonly included external library in Java projects.

JUnit is a unit testing framework for the Java programming language. It is important in test-driven development and part of a family of unit testing frameworks, collectively known as xUnit, originated with SUnit. It is linked as a JAR at compile-time.
After completing the course, a certificate
is issued on the Luxoft Training form

Objectives

Provide participants with the basic knowledge necessary for application development using JUnit5.

Target Audience

  • Developers who are new to unit testing
  • Developers having experience in JUnit 4 and who want to learn and use the new features of JUnit 5.
  • Testers who need to automate a part of their activity

Prerequisites

  • Basic knowledge of Java 8
  • Basic knowledge of the Apache Maven build tool

Roadmap

Introducing JUnit 5
  • What is JUnit?
  • What is TDD?
  • TDD Benefits
  • Code Production Lifecycle
  • Isolate Incorrect Code
  • JUnit 4 Architecture
  • JUnit 5 Modules
  • JUnit Platform
  • JUnit Jupiter
  • JUnit Vintage

JUnit 5 vs. JUnit 4
  • Architecture
  • Supported Java Version
  • Annotations
  • Assertions
  • Assumptions
  • Code Coverage Tools
  • JUnit 5 IDE Support
  • Needed dependencies
  • @Test annotation
  • Test fixtures

Exercise
JUnit 5 New Features And Annotations
  • @DisplayName
  • @Disabled
  • @Nested
  • @Tag

Assertions
Assumptions
Dependency Injection in JUnit 5
Parametrized Tests
Dynamic Tests

Exercises
Integrating JUnit 5 with Mockito
  • SUT and DOC
  • Mock Objects
  • JUnit 5 Extensions
  • Use Cases for Mock Objects
  • Mockito dependency
  • Device mocking
Exercise
Schedule and prices
View:
Register for the next course
Registering in advance ensures you have priority. We will notify you when we schedule the next course on this topic
+
Courses you may be interested in
New features of Java 8 (stream, API)
This training is designed to help participants understand these new features of Java 8. The course covers lambda expressions, data streams, stream data processing with map-filter-reduce approach, asynchronous programming and DateTime API.
Online:
11.12.2023 - 14.12.2023
RabbitMQ for Developers
We’ll start from crash course in JMS, then we’ll discuss AMQP and the message flow model in RabbitMQ - broker configuration options.
View Catalog
Your benefits
Expertise
Our trainers are industry experts, involved in software development project
Live training
Facilitated online so that you can interact with the trainer and other participants
Practice
A focus on helping you practice your new skills
Still have questions?
Connect with us
Thank you!
The form has been submitted successfully.