Java Testing Skills with JUnit 5, Mockito 3, and More


3rd September 2020
Speaker Date: 3rd September 2020
Speaker Time: EDT: 06:00-07:00
Attendee Date: 3rd September 2020
Attendee Time: IST: 15:30-16:30 | SGT: 18:00-19:00 | AEST: 20:00-21:00
Duration: 50 mins
Kenneth Kousen
Founder, KousenIT

The fundamental testing libraries in Java have undergone complete redesigns in the past few years. JUnit 5 redesigns the most well-known tool in all of testing. The most popular mocking library, Mockito, has also been rebuilt. This talk will demonstrate the new features, how they are intended to be used, and discuss experimental ideas in the pipeline.

JUnit has been remarkably stable over the years and is one of the most widely adopted frameworks in the Java world. The latest version, JUnit 5, takes JUnit to the next level. Full of new features like conditional test execution, parametric testing, labeling and filtering tests, and more, it brings all the modern thinking on testing into the JUnit world. It also takes advantage of the functional features added to Java since version 8 to create a powerful, new library for testing your code. With the release of Mockito 3, the mocking library now requires functional features from Java 8 and takes advantage of them in interesting ways. This talk will demonstrate both libraries, and briefly discuss popular alternatives.

You may also be interested in

3rd, September

Time
An Introduction to Constraint Programming

The two most common programming paradigms are the imperative (including OO) and functional styles. An alternative style, supported originally through...

5th, November

Time
Groovy 3: All The Major New Features

Groovy 3 represents the biggest update to the Groovy programming language in years. The move to the Parrot Parser allows...

5th, November

Time
Event-driven Programming 101

Event-driven programming is a natural fit for applications whose control flow is based on internal or external events and not...

3rd, September

Time
An Introduction to Property-based Testing

Property-based testing is an approach to testing that involves checking that a system meets certain expected properties. The approach is...

5th, November

Time
Go Microservices in Containers

Cloud native containers allow smaller teams to embrace polyglot. We can now choose the best languages and tools to solve...

5th, November

Time
LLVM

The LLVM Project has been around for over a decade, but is increasingly important as a compiler infrastructure to get...