Setting up and running JUnit tests

The following code when put in pom.xml helps one get set up with JUnit 5:

<properties>   <junit.jupiter.version>5.0.0-M4</junit.jupiter.version>   <junit.vintage.version>${junit.version}.0-M4</junit.vintage.version> <junit.platform.version>1.0.0-M4</junit.platform.version></properties><dependencies>   <dependency>     <groupId>org.junit.platform</groupId>     <artifactId>junit-platform-surefire-provider</artifactId>     <version>${junit.platform.version}</version>   </dependency>    <dependency>     <groupId>org.junit.jupiter</groupId>     <artifactId>junit-jupiter-api</artifactId>     <version>${junit.jupiter.version}</version>     <scope>test</scope>   </dependency>   <dependency>     <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> ...

Get Building Web Apps with Spring 5 and Angular now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.