Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The verification that you've done are good, especially checking that you are using version 2.3+ of the surefire plugin (by default, you'll get version 2.4.3 with maven 2.1 <a href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html" rel="nofollow noreferrer">super POM</a> so this should be ok) and checking that you not pulling the <code>junit-3.8.1.jar</code> dependency transitively. </p> <p>Now, just to validated that this is not a "global problem" (I don't think so TBH), could you create a project from scratch, for example by running: </p> <pre><code>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=maven-junit4-testcase </code></pre> <p>Then update the junit dependency:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;version&gt;4.7&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>And configure the compiler level for 1.5+</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;source&gt;1.5&lt;/source&gt; &lt;target&gt;1.5&lt;/target&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>Finally put your <code>SimpleTest.java</code> next to <code>AppTest.java</code> and run <code>mvn test</code>.</p> <p>If running <code>mvn test</code> works fine for that project (and I'm expecting it to run without problem), could you please update your question with the POM configuration you're using (from the project having troubles)?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload