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.
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
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.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.