title: Automatically add properties when running JUnit in Eclipse
body: <p>In order to run my unit tests on my Eclipse, I need to set some properties for the VM.</p>
  
  <p>Thus, when I first run my JUnit test, I go in "Open Run Dialog", then in my JUnit configuration for this test, I go in "Arguments" tab and put everything I need in the "VM arguments" text area.</p>
  
  <p>Is there a way to automatically add a set of properties when I run my JUnit, so I will be able to only right-click on the test class, and click on "Run as > Junit Test" to run a test?</p>
  
  <p>Technical information:
  Eclipse 3.3.2, JUnit 4, Java 5</p>
  
  <p><hr>
  <strong>Edit</strong>, regarding response from Aaron Digulla:</p>
  
  <p>These properties are used in Spring configuration files*. Thus, I can't use the idea given by Aaron, as Spring will be initialized before the test is run.</p>
  
  <p>In addition to that, I just need to know if I can achieve that in a easy way in Eclipse. Thus the solution must not have any impact on the compilation of the application outside Eclipse, as my application will finally be compiled (and tested) by Maven2.</p>
  
  <p>* few "unit" tests indeed need my Spring configuration to be run. Ok, I know that it is not real unit tests ;o)</p>
  
  <p><strong>Edit 2</strong>: In fact, I was indeed starting the Spring configuration by a test unit. Thus, before starting Spring, I check the System properties, and if my properties are not set, then I give them the required value...</p>
  
  <p>However, I am a little disappointed that Eclipse can't do that for me automatically...</p>