| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,4 +26,4 @@ public double subtract(double x, double y){ | |||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | - } | ||
| 29 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,15 +13,15 @@ | |||
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | 15 | /** | |
| 16 | - * Tests for {@link Math}. | ||
| 16 | + * Tests for {@link Functions}. | ||
| 17 | 17 | * | |
| 18 | 18 | * @author hmkcode@gmail.com (Hani HMK) | |
| 19 | 19 | */ | |
| 20 | 20 | @RunWith(JUnit4.class) | |
| 21 | 21 | public class MathTest { | |
| 22 | 22 | ||
| 23 | 23 | @Rule | |
| 24 | - public Timeout globalTimeout = new Timeout(3000); // 3 seconds max per method tested | ||
| 24 | + public Timeout globalTimeout = new Timeout(3000); // 0 seconds max per method tested | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | 27 | com.hmkcode.junit.Math math = new com.hmkcode.junit.Math(); | |
@@ -59,5 +59,9 @@ public void testSubtract(){ | |||
| 59 | 59 | org.junit.Assert.assertTrue("failure - not equal", math.subtract(3, 2) == 1); | |
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | - | ||
| 63 | - } | ||
| 62 | + public static void main(String[] args){ | ||
| 63 | + org.junit.runner.JUnitCore.runClasses(MathTest.class); | ||
| 64 | + | ||
| 65 | + } | ||
| 66 | + } | ||
| 67 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,23 +3,24 @@ | |||
| 3 | 3 | <modelVersion>4.0.0</modelVersion> | |
| 4 | 4 | ||
| 5 | 5 | <groupId>com.hmkcode</groupId> | |
| 6 | - <artifactId>simple-junit</artifactId> | ||
| 7 | - <version>1.0-SNAPSHOT</version> | ||
| 6 | + <artifactId>junit</artifactId> | ||
| 7 | + <version>0.0.1-SNAPSHOT</version> | ||
| 8 | 8 | <packaging>jar</packaging> | |
| 9 | 9 | ||
| 10 | - <name>simple-junit</name> | ||
| 10 | + <name>junit</name> | ||
| 11 | 11 | <url>http://maven.apache.org</url> | |
| 12 | 12 | ||
| 13 | 13 | <properties> | |
| 14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| 15 | 15 | </properties> | |
| 16 | 16 | ||
| 17 | 17 | <dependencies> | |
| 18 | - <dependency> | ||
| 19 | - <groupId>junit</groupId> | ||
| 20 | - <artifactId>junit</artifactId> | ||
| 21 | - <version>4.11</version> | ||
| 22 | - <scope>test</scope> | ||
| 23 | - </dependency> | ||
| 18 | + <dependency> | ||
| 19 | + <groupId>junit</groupId> | ||
| 20 | + <artifactId>junit</artifactId> | ||
| 21 | + <version>4.11</version> | ||
| 22 | + <scope>test</scope> | ||
| 23 | + </dependency> | ||
| 24 | + | ||
| 24 | 25 | </dependencies> | |
| 25 | 26 | </project> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments