Skip to content

Commit 4977fa5

Browse files
committed
Revert "update project structure"
This reverts commit aeb33b8.
1 parent aeb33b8 commit 4977fa5

File tree

7 files changed

+19
-37
lines changed

7 files changed

+19
-37
lines changed

simple-junit/.classpath

Lines changed: 0 additions & 9 deletions
This file was deleted.

simple-junit/.project

Lines changed: 0 additions & 14 deletions
This file was deleted.

simple-junit/src/main/java/com/hmkcode/junit/Math.java renamed to simple-junit/Math.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public double subtract(double x, double y){
2626

2727

2828

29-
}
29+
}

simple-junit/src/test/java/com/hmkcode/junit/MathTest.java renamed to simple-junit/MathTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414

1515
/**
16-
* Tests for {@link Math}.
16+
* Tests for {@link Functions}.
1717
*
1818
* @author hmkcode@gmail.com (Hani HMK)
1919
*/
2020
@RunWith(JUnit4.class)
2121
public class MathTest {
2222

2323
@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
2525

2626

2727
com.hmkcode.junit.Math math = new com.hmkcode.junit.Math();
@@ -59,5 +59,9 @@ public void testSubtract(){
5959
org.junit.Assert.assertTrue("failure - not equal", math.subtract(3, 2) == 1);
6060
}
6161

62-
63-
}
62+
public static void main(String[] args){
63+
org.junit.runner.JUnitCore.runClasses(MathTest.class);
64+
65+
}
66+
}
67+

simple-junit/pom.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<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>
88
<packaging>jar</packaging>
99

10-
<name>simple-junit</name>
10+
<name>junit</name>
1111
<url>http://maven.apache.org</url>
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
1616

1717
<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+
2425
</dependencies>
2526
</project>
-929 Bytes
Binary file not shown.
-2.09 KB
Binary file not shown.

0 commit comments

Comments
 (0)