Top "Junit5" questions

Version 5 of the popular JUnit testing framework for the JVM.

Gradle 5 JUnit BOM and Spring Boot Incorrect Versions

I am using Gradle 5's BOM (Bill of Materials) feature. This is how I describe it for my JUnit 5 dependencies: …

spring-boot gradle junit junit5
JUnit 5 for Android testing

How to configure JUnit 5 for Android unit testing? I tried: testCompile("org.junit.jupiter:junit-jupiter-api:5.0.0") But it doesn't work, when …

java android unit-testing junit junit5
JUnit 5 and Spring Framework 4.3.x

Is it right, that JUnit 4.12 and junit-vintage-engine (from JUnit 5) can be used together with Spring Framework 4.3.x? Is there a …

spring junit junit5
Difference between junit-jupiter-api and junit-jupiter-engine

What is difference between maven modules junit-jupiter-api and junit-jupiter-engine? Is it necessary to include both dependencies in build.gradle? Do …

java junit junit5
JUnit5 tag-specific gradle task

I use the following annotation to tag my integration tests: @Target({ ElementType.TYPE, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Tag("integration-test") …

gradle junit5
How to pass a list as a JUnit5's parameterized test parameter?

I want to parameterize my JUnit5 tests using three parameters: string, string and list<string>. No luck so …

java kotlin junit5 parameterized-unit-test
IntelliJ + JUnit 5 (Jupiter)

My build.gradle has: testCompile 'org.junit.jupiter:junit-jupiter-api:5.0.0' Using the standard example from http://junit.org/junit5/docs/…

java intellij-idea junit junit5 junit-jupiter
java.lang.AssertionError: Status expected:<200> but was:<404> in Junit test

I want to create JUnit test for Rest api and generate api doc. I want to test this code: Rest …

java spring spring-boot junit5 spring-restdocs
JUnit5 - How to get test result in AfterTestExecutionCallback

I write JUnit5 Extension. But I cannot find way how to obtain test result. Extension looks like this: import org.…

java junit junit5 junit5-extension-model
How do I run JUnit 5 integration tests with the Maven Failsafe plugin?

The Maven Failsafe plugin won't find my JUnit 5 integration tests when I'm running the command mvn clean failsafe:integration-test, although …

java maven maven-failsafe-plugin junit5