Re: Adding @NonParameterized
David Saff <[email protected]> Mon, 13 Jun 2011 15:25:42 -0400
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <[email protected]> |
Would it be possible to quickly code up a test showing the new runner in action? Thanks, David On Fri, Jun 10, 2011 at 7:56 PM, Marius Kruger <[email protected]> wrote: > Hi, > I've just discovered and fell in love with Parameterized tests (with: > @RunWith(value = Parameterized.class) ) > > However in the first two use cases I have I have tests that does not > use the parameterization > mixed in with test that do use it (in the same class). > I don't seem to be the only one missing this feature: > http://stackoverflow.com/q/3361239/381083 > > It appears that TestNG does not suffer from this problem. > http://techinsides.blogspot.com/2010/09/dont-tie-yourself-up-parameterized.html > > I'm not so desperate to switch to TestNG, so I modified the builtin > Parameterized class to support this feature (see attached). > Just annotate applicable tests as @NonParameterized. Note that this > class only works with its on annotations, i.e. check your imports. > > If this has any chance of getting merged into junit I can turn it into > a branch add tests and documentation etc. let me know. > > -- > regards > <>< Marius ><> > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Junit-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/junit-devel > > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev