Skip to content
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
\n
import org.junit.Test;\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.extension.ExtendWith;\n
\n
\n

There's your problem: You're mixing the JUnit 4.x (org.junit.*) and JUnit Jupiter/JUnit 5.x (org.junit.jupiter.*) annotations.

\n

Your build will only pick up test methods annotated with org.junit.jupiter.api.Test.

","upvoteCount":0,"url":"https://github.com/dropwizard/dropwizard/discussions/8957#discussioncomment-9837281"}}}
Discussion options

You must be logged in to vote
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;

There's your problem: You're mixing the JUnit 4.x (org.junit.*) and JUnit Jupiter/JUnit 5.x (org.junit.jupiter.*) annotations.

Your build will only pick up test methods annotated with org.junit.jupiter.api.Test.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Zaeem6100
Comment options

@joschi
Comment options

@Zaeem6100
Comment options

@joschi
Comment options

Answer selected by joschi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants