David Saff

Results 63 comments of David Saff

@panchenko, that already exists. It's called `@ClassRule`. :-) Or do I misunderstand?

I _think_ that you can get a similar effect by passing the Browser into a constructor on the Test class. Can you try that? And if it works, can you...

What would you think about a @TheoryRule? ``` java @TheoryRule TestRule my TheorySetup = new TheoryRule() { Statement apply(Statement base, Description description, Browser browser) { setStuff( browser.getStuff() ); base.evaluate(); }...

Okay, sounds good. Renaming the feature request.

I don't really want to enable reading FixMethodOrder from a superclass. In general, test classes shouldn't expect any kind of ordering between their test methods, and if a particular order...

@kretes, unfortunately (for people who liked the accidental "feature" in JUnit), the number of JVM installations for which there will be any way via reflection to figure out source code...

@bmuskalla, that only works if every test class in the package already inherits from the same base class. Over at #635, we're discussing adding a --filter command-line option to enable...

I'm not against in general allowing a facility for requesting test ordering from source code. (The _full quote_ above was: "In general, test classes shouldn't expect any kind of ordering...

If you'd like to take a first pass at an implementation, I'd welcome it. Be prepared to respond to a lot of feedback from me and the community, however!

Are you wanting to contribute to this particular feature request, or to JUnit in general?