JUnit 5

  • JUnit is a very popular Java automated testing library
  • Allows you to directly run pieces of your code
  • Use "assertions" to verify behaviors
  • Uses a lot of annotations
<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <version>5.8.2</version>
    <scope>test</scope>
</dependency>

2 / 21