From 4499f7cddbfe4fc26544ccd0a6f442393e1a7b73 Mon Sep 17 00:00:00 2001 From: xking Date: Sun, 15 Jan 2023 22:54:08 +0800 Subject: [PATCH] init --- pom.xml | 82 +++++++++++++++++++++++++++++++ src/main/java/cn/x47/App.java | 10 ++++ src/test/java/cn/x47/AppTest.java | 38 ++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/cn/x47/App.java create mode 100644 src/test/java/cn/x47/AppTest.java diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..5050a74 --- /dev/null +++ b/pom.xml @@ -0,0 +1,82 @@ + + 4.0.0 + + cn.x47 + hyper-v-java + 1.0.1-SNAPSHOT + jar + + hyper-v-java + https://git.dr1997.com/hyper-v/hyper-v-java + + + + + 17 + UTF-8 + UTF-8 + 17 + 17 + + + + + com.profesorfalken + jPowerShell + 3.1.1 + + + junit + junit + 4.13.2 + test + + + + + + gitea + https://git.dr1997.com/api/packages/hyper-v/maven + + + + + gitea + https://git.dr1997.com/api/packages/hyper-v/maven + + + gitea + https://git.dr1997.com/api/packages/hyper-v/maven + + + + + ${project.name} + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + + + + + + + src/main/resources + + **/*.properties + **/*.xml + **/*.yml + + true + + + + + diff --git a/src/main/java/cn/x47/App.java b/src/main/java/cn/x47/App.java new file mode 100644 index 0000000..0cbb677 --- /dev/null +++ b/src/main/java/cn/x47/App.java @@ -0,0 +1,10 @@ +package cn.x47; + +/** + * Hello world! + */ +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/src/test/java/cn/x47/AppTest.java b/src/test/java/cn/x47/AppTest.java new file mode 100644 index 0000000..ed16303 --- /dev/null +++ b/src/test/java/cn/x47/AppTest.java @@ -0,0 +1,38 @@ +package cn.x47; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +}