Running JUnit Test and java.policy

All,

I've been writing more code involving RMI lately, and have some unit
tests to go along. For me to run the unit tests I have to always add
-Djava.security.policy=[somepath]/java.policy to each test, which means
I can't just right click on a test method and run my test because it
will of course fail with permission errors.

The question: is there some hidden way I haven't found yet in idea
which would allow me to setup some kind of JUnit vm parameter to the
whole project so I don't have to do this for every single test? This is
kind of a pain if it doesn't exist, and I'll add it as a request in
tracker.

Thanks
R

2 comments
Comment actions Permalink

Robert

>.. is there some hidden way I haven't found yet in idea

>

In the JUnit config screen, just click on "Edit Defaults".

Alain

0
Comment actions Permalink

In article <d0kcu9$fe7$1@is.intellij.net>,
Alain Ravet <alain.ravet@biz.tiscali.be> wrote:

Robert

>.. is there some hidden way I haven't found yet in idea

>

In the JUnit config screen, just click on "Edit Defaults".

Alain


HA! DOH! Thanks Alain. I guess this one is as obvious as the bug
button huh :)

R

0

Please sign in to leave a comment.