GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "update project structure" · ivan4github/Java@4977fa5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • simple-junit
    • .classpath
    • .project
    • Math.java
    • MathTest.java
    • pom.xml
    • target
      • classes/com/hmkcode/junit
        • Math.class
      • test-classes/com/hmkcode/junit
        • MathTest.class
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎simple-junit/.classpath‎

Copy file name to clipboardExpand all lines: simple-junit/.classpath
-9Lines changed: 0 additions & 9 deletions
This file was deleted.
Collapse file

‎simple-junit/.project‎

Copy file name to clipboardExpand all lines: simple-junit/.project
-14Lines changed: 0 additions & 14 deletions
This file was deleted.
Collapse file

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

Copy file name to clipboardExpand all lines: simple-junit/Math.java
+1-1Lines 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+
}
Collapse file

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

Copy file name to clipboardExpand all lines: simple-junit/MathTest.java
+8-4Lines 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 [email protected] (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+
Collapse file

‎simple-junit/pom.xml‎

Copy file name to clipboardExpand all lines: simple-junit/pom.xml
+10-9Lines 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>
Collapse file

‎simple-junit/target/classes/com/hmkcode/junit/Math.class‎

Copy file name to clipboard
-929 Bytes
Binary file not shown.
Collapse file

‎simple-junit/target/test-classes/com/hmkcode/junit/MathTest.class‎

Copy file name to clipboard
-2.09 KB
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.