Created
February 23, 2012 00:49
-
-
Save cb372/1888802 to your computer and use it in GitHub Desktop.
Maven + JUnit example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// put this file in src/test/java/foo/ | |
package foo; | |
import org.junit.Test; | |
import org.junit.Assert; | |
import static org.junit.Assert.assertTrue; | |
public class MyTest { | |
@Test | |
public void shouldDoSomeAsserting() { | |
assertTrue(false); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>junit-example</artifactId> | |
<version>0.1-SNAPSHOT</version> | |
<name>Maven + JUnit example</name> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.10</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment