I'm developing tests for Spring application. I have several tests that i want to run multiple times for different data.
I can't use JUnit's @Parameters because test class must be run with Parameterized.class to make this work, while i have to run test classes with SpringJUnit4ClassRunner.class that sets up mock Spring context. Unfortunately, it seems that this runner doesn't support processing of the @Parameters annotation. I also took a look at TestContextBootstrapper and TextExecutionListener, but it seems that it can't help me either.
Is there a way to run test of the Spring application multiple times for different input data?
I need something similar to TestNG's @Test(dataProvider=) @DataProvider couple or @Factory(dataProvider = ) @DataProvider couple.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire