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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.