ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

Spring-Test support #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hey!

I love your library and have used it a good while now!

I recently performed some refactoring in a project and came across the 
requirement that I use the Spring test runner while having parameterised tests. 
In your javadoc you suggest a work-around which I attempted, but I it became a 
problem that my test methods were not @Transactional.

After some research I came up with a solution: 

1. Create new custom runner.
2. Inherit SpringJUnit4ClassRunner.
3. Import all code from JUnitParamsRunner.

This allows me to use all the useful annotations and properties of the Spring 
runner as well as your excellent library! I create this issue to suggest that 
you create a new library (e.g. junitparams-spring) for this functionality.

Original issue reported on code.google.com by mats...@gmail.com on 5 Apr 2014 at 3:15

GoogleCodeExporter commented 8 years ago
Or perhaps I could put this information on the wiki somehow?

Original comment by mats...@gmail.com on 5 Apr 2014 at 3:19

GoogleCodeExporter commented 8 years ago
Hi! Isn't this enough?: 
http://junitparams.googlecode.com/hg/apidocs/junitparams/JUnitParamsRunner.html?
r=JUnitParams-1.0.1#2

Original comment by lipinski...@gmail.com on 14 Apr 2014 at 2:39