> just to clarify: your'e saying that if we put that anotation on a class,
> like LuceneTestCase, it will apply to any test *method* in that class (or
> subclasses) ... and presumably if a subclass uses that anotation with a
> diff millis value, that will override the superclass.

Correct. You can also apply it to a particular method to have
per-method adjustment. In fact, @Timeout is somewhat redundant since
@Test also has a "timeout" attribute... and this will also work. But I
thought a consistent @Timeout would be nicer (applied to class,
method, wherever). Up to your taste I guess.

There is one issue with timeouts -- they apply to test cases _only_,
not to suite-level code (@BeforeClass, @ClassRules). I don't know if
this qualifies as a bug or feature -- haven't developed that gut
feeing yet...

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to