diff --git a/untitled/pom.xml b/untitled/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..fee12c0d95bff9a01e2c5295f677740d7c8ddb0e --- /dev/null +++ b/untitled/pom.xml @@ -0,0 +1,37 @@ + + + 4.0.0 + + org.example + untitled + 1.0-SNAPSHOT + + + 21 + 21 + UTF-8 + + + + + junit + junit + 4.13.2 + test + + + org.junit.jupiter + junit-jupiter + RELEASE + test + + + org.junit.jupiter + junit-jupiter + RELEASE + test + + + \ No newline at end of file diff --git a/untitled/src/main/java/HelloWorld.java b/untitled/src/main/java/HelloWorld.java new file mode 100644 index 0000000000000000000000000000000000000000..ade3295c435844da42b4e3d7cb0f4a22ed97ba9f --- /dev/null +++ b/untitled/src/main/java/HelloWorld.java @@ -0,0 +1,8 @@ +public class HelloWorld { + public static void main(String[] args) { +// System.out.println("hello world"); + } + public static int sum(int m,int n){ + return m+n; + } +} diff --git a/untitled/src/test/java/HelloWorldTest.java b/untitled/src/test/java/HelloWorldTest.java new file mode 100644 index 0000000000000000000000000000000000000000..d8ae4a5bc1697b39885c4a0269972c9077cfa222 --- /dev/null +++ b/untitled/src/test/java/HelloWorldTest.java @@ -0,0 +1,12 @@ +import org.junit.jupiter.api.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.*; + +class HelloWorldTest { + + @Test + void sum() { + assertEquals(2,HelloWorld.sum(1,1)); + } +} \ No newline at end of file