Yep. You cqn use that but it would be probably better if you did not have
go modify system properties at all? ;)
On Jun 15, 2013 2:47 PM, "Erick Erickson" <[email protected]> wrote:

> I just ran across this little gem in a test:
>
>   @Rule
>   public TestRule solrTestRules =
>       RuleChain.outerRule(new SystemPropertiesRestoreRule())
>
> Without looking at the code, I'm guessing that this will restore any
> system variables that you change in a test, is this correct?
>
> If so, I've found a new trick to make test writing easier <G>.....
>
> Thanks,
> Erick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to