Skip to content

ClassTemplate with multiple invocations only creates one test class instance #4472

Answered by sbrannen
errikos asked this question in Q&A
Discussion options

You must be logged in to vote

If I remove the parameter from setup then foo is indeed called twice but it seems that setup only runs once.

Have you taken a look at @BeforeParameterizedClassInvocation?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sbrannen
Comment options

Answer selected by errikos
@errikos
Comment options

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