Deep Dive into JUnit 5 by Sam Brannen
2,113 views · Published 2 March 2017 · 48:14 · Indexed 21 October 2026
Channel: Devoxx · 2017 · Science & Technology
Take a Deep Dive into JUnit 5 with core committer Sam Brannen! Over the last decade a lot has happened in the world of Java and testing, but JUnit 4 hasn't kept up. Now JUnit 5 is here to help shape the future of testing on the JVM with a focus on Java 8, extensibility, and a modern programming API for testing in Java. And well, the JUnit Platform isn't just about Java anymore. Third parties are already developing TestEngines for Scala, Groovy, Kotlin, etc. This session starts off with an overview of the inspiration for & architecture of JUnit 5, from launchers to test engines. Sam will then take the audience on a live coding tour, highlighting support for tagging, custom display names, dependency injection, conditional test execution, lambda expressions for assertions, assumptions, & dynamic tests, and implementing tests via interface default methods (a.k.a., testing traits). Next, Sam will present the new extension model in JUnit 5, discussing how to author and register extensions for conditional tests, parameter resolution, lifecycle callbacks, & more. To round off the session, Sam will quickly showcase JUnit 5 support in the Spring Framework. Sam Brannen is an enterprise Java developer with over 17 years of experience and co-founder of Swiftmind, a software consulting agency in Zurich, Switzerland. At Swiftmind Sam helps international clients achieve best practices in software development, architecture, design, implementation, and testing of enterprise Java applications using the Spring Framework, JUnit, and a plethora of open source technologies. Sam is a popular speaker at conferences on Java and Spring. He is also an active core committer for the Spring Framework and JUnit 5 as well as the author and maintainer of Spring's testing framework. Blog: http://sambrannen.com
More from this channel
-
32:13
Writing Groovy AST Transformations: Getting Practical in an hour! by Baruch Sadogursky
-
25:58
TweetWallFX - Behind the Scenes by Sven Reimers
-
29:44
Second generation "workflow managers" for big data by Alex Van Boxel
-
29:13
Secrets are secrets. Please maintain them as secrets by Alex Soto
-
2:13:40
JavaScript build pipelines with Gulp.js by Stefan Baumgartner
-
2:04:09
Powerful Metaprogramming Techniques With Groovy by Jeff Brown
-
2:38:32
Distributed Machine Learning 101 using Apache Spark from a Browser by Xavier Tordoir/Andy Petrella
-
2:36:21
Caching 101: Caching on the JVM (and beyond) by Alex Snaps/Louis Jacomet