Part 4. Working with modern frameworks and JUnit 5

 

This part of the book explores working with JUnit 5 and commonly used frameworks. Chapter 14 is dedicated to the implementation of JUnit 5 extensions as alternatives to JUnit 4 rules and runners. This is useful for working with custom test extensions as well as for easily working with modern frameworks that provide their own extensions for creating efficient JUnit 5 tests.

We continue by introducing HtmlUnit and Selenium in chapter 15. We will show you how to test the presentation layer with these tools. We go into detail about how to set up your projects and also some best practices for testing the presentation layer.

We dedicate chapters 16 and 17 to testing one of the most useful frameworks today: Spring. Spring is an open source application framework and inversion of control container for the Java platform. Spring is largely used today for creating Java SE and Java EE applications. It includes several separate frameworks, including the Spring Boot convention-over-configuration solution for creating applications that you can run directly.

Chapter 18 examines testing REST applications. Representational State Transfer represents an application program interface that uses HTTP requests to GET, PUT, PATCH, POST, and DELETE data. Chapter 19 discusses alternatives for testing database applications, including JDBC, Spring, and Hibernate.