title: How to configure IntelliJ for running test with JUnit 4?
body: <p>Should be simple but I couldn't figure it out.</p>
  <p>When running my unit test inside IntelliJ, I could not find a way to tell IntelliJ-9.0 that it should <strong>use JUnit4 instead of JUnit3</strong>.</p>
  <p>When a test fails, IntelliJ console displays:</p>
  <blockquote>
  <p>MyTests.testConstraints(MyTests.groovy:20) at</p>
  <p>...</p>
  <p>com.intellij.<strong>junit3.JUnit3IdeaTestRunner</strong>.doRun(JUnit3IdeaTestRunner.java:108)
  at
  com.intellij.<strong>junit3.JUnit3IdeaTestRunner</strong>.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42)
  ...</p>
  </blockquote>
  <p>Do you know how to replace JUnit3 by JUnit4 ?</p>