title: Ist there a way to run JUnit 4 tests with Spring AspectJ LTW without using a jvm agent?
body: <p>I have a spring tomcat project configured with aspectJ LTW, I would like to run unit tests with AspectJ LTW. According to the spring docs running with LTW for a standalone JVM requires passing in arguments for a JVM agent.</p>
  
  <p>Passing a JVM agent to junit tests is easy to do from ant, but very inconvenient to do when running a unit test in eclipse. Is there any way to configure the JUnit classes, so that LTW is turned on without using an agent?</p>
  
  <p>For tomcat spring uses a transforming class loader to load run AspectJ LTW, is there something similar for JUnit, maybe a JUnit runner that does LTW? </p>
  
  <p><strong>update:</strong> By telling eclipse to store the .launch files in the eclipse project I am able to right click on unit tests and do Run As and it works because eclipse uses the .launch files, this is a workaround that I would like to avoid if possible.</p>