<dependencies>
...
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
...
</dependencies>
groovy
dependencies {
...
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
...
}
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class MyTests {
@Test
public void myTestMethod() {
int result = 1 + 2;
Assertions.assertEquals(3, result);
}
}