Thank you! I haven't really understood the LuceneTestCase.classRules
before this.

roman

On Wed, Jul 18, 2012 at 3:11 PM, Chris Hostetter
<hossman_luc...@fucit.org> wrote:
>
> : I am porting 3x unittests to the solr/lucene trunk. My unittests are
> : OK and pass, but in the end fail because the new rule checks for
> : modifier properties. I know what the problem is, I am creating new
> : system properties in the @beforeClass, but I think I need to do it
> : there, because the project loads C library before initializing tests.
>
> The purpose ot the assertion is to verify that no code being tested is
> modifying system properties -- if you are setting hte properties yourself
> in some @BeforeClass methods, just use System.clearProperty to unset them
> in corrisponding @AfterClass methods
>
>
> -Hoss

Reply via email to