JUnit 5: The New Generation Testing Framework for the JVM
In this video we will start by introducing the new features of JUnit 5, architecture, and description of the main Java 5 APIs. After that we will be learning about the low-level details of JUnit 5, i.e., how to write JUnit 5 test cases (programing model)
About The Author
Boni García has a
PhD degree in Information and Communications Technology from
Universidad Politécnica de Madrid (UPM), Spain in 2011. Currently he is
working as an Assistant Professor at Centro Universitario de Tecnología y
Arte Digital (U-tad), Spain. He has participated actively in three
different research groups: Real-Time Systems and Telematic Services
Architecture (STRAST), UPM; Telematic System for Information and
Knowledge Society (TSIC), UPM; and currently on CodeUrjc (Universidad
Rey Juan Carlos).
He has participated in 12
European research projects, publishing more than 20 papers in different
journals and at international conferences. García is an active member
of the FOSS community with a big emphasis on Software Testing, Web
Engineering, and Computer Networking.
What’s New in JUnit 5
This video provides an overview of the entire title.
JUnit 4 is the default testing framework for millions of Java
developers worldwide. Due to the fact that this version of JUnit has
important drawbacks, and a new version (JUnit 5) has been released. The
main new features of JUnit 5 are explained in this video.
JUnit 5 framework has been designed to be completely modular. The main JUnit 5 components are explained in this video.
The JUnit platform is a completely new component in JUnit 5. It is
aimed to be the foundation for any testing framework that is going to
be executed in a JVM.
This video covers the tools that are supported by JUnit 5.
The Extension model provides seamless integration of JUnit 5 with
existing testing frameworks. In order to create a custom extension,
several actions have to be taken into account, which are explained in
JUnit 5 Programming Model
In this video, we are going to learn the basics to write tests based on the JUnit 5 programming model, called Jupiter.
An assertion (or predicate) is a boolean statement typically used to reason about software correctness.
Test classes and methods can be tagged in the JUnit 5 programming
model by means of the annotation @Tag. Those tags can later be used to
filter test discovery and execution.
In this video, we are going to take a look at nested and repeated tests within the JUnit 5 programming model.
Old versions of JUnit (3 and 4) allow you to create test in
compile tests, that is, static tests. With JUnit 5, tests can be created
in runtime, that is, dynamic tests.
In this video, we are going to take a look at dependency injection
for constructors and methods. We review the three parameter resolvers
provided out of the box in the JUnit 5 programming model.