Unit test – parameterized JUnit test without changing the runner
•
Java
Is there a clean way to run parameterized JUnit 4 tests without changing the runner, that is, without using
I have unit tests and need a special runner. I can't replace this with parameterization Maybe there are some "runner chains", so I can run in two runners at the same time? (just guess...)
Solution
org. junit. runners. Parameterized by org junit. internal. builders. Annotatedbuilder is created through reflection mechanism Maybe you can extend parameterized to your own runner: @ runwith (myparameterized. Class)
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码