D
D
Dima Sokolov2018-12-27 17:43:40
Java
Dima Sokolov, 2018-12-27 17:43:40

Junit4 how to set parameters for each test method?

We need different sets of parameters for different methods.
JUnit 5 has @ParameterizedTest
But what about JUnit 4?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
al_gon, 2018-12-27
@al_gon

In JUnit 4

S
sergey, 2019-02-02
kuzmin @sergueik

for 4 there is https://github.com/Pragmatists/JUnitParams
by the way here on it
https://github.com/sergueik/junit-dataproviders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question