Java Testing Skills with JUnit 5, Mockito 3, and More
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
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.