From 07a71fb43760f8275d83c80e0b903d20bd9bc8ea Mon Sep 17 00:00:00 2001 From: JACKYMYPERSON <1627832236@qq.com> Date: Sat, 7 Mar 2026 19:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0java=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E5=AD=90=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javamemories-concurrency/pom.xml | 28 ++++++++++++++ .../src/main/java/cn/mayiming/App.java | 13 +++++++ .../src/test/java/cn/mayiming/AppTest.java | 38 +++++++++++++++++++ pom.xml | 1 + 4 files changed, 80 insertions(+) create mode 100644 javamemories-concurrency/pom.xml create mode 100644 javamemories-concurrency/src/main/java/cn/mayiming/App.java create mode 100644 javamemories-concurrency/src/test/java/cn/mayiming/AppTest.java diff --git a/javamemories-concurrency/pom.xml b/javamemories-concurrency/pom.xml new file mode 100644 index 0000000..b3f09f4 --- /dev/null +++ b/javamemories-concurrency/pom.xml @@ -0,0 +1,28 @@ + + 4.0.0 + + cn.mayiming + javamemories-parent + 1.0-SNAPSHOT + + + javamemories-concurrency + jar + + javamemories-concurrency + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + + diff --git a/javamemories-concurrency/src/main/java/cn/mayiming/App.java b/javamemories-concurrency/src/main/java/cn/mayiming/App.java new file mode 100644 index 0000000..93abe3a --- /dev/null +++ b/javamemories-concurrency/src/main/java/cn/mayiming/App.java @@ -0,0 +1,13 @@ +package cn.mayiming; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/javamemories-concurrency/src/test/java/cn/mayiming/AppTest.java b/javamemories-concurrency/src/test/java/cn/mayiming/AppTest.java new file mode 100644 index 0000000..2244532 --- /dev/null +++ b/javamemories-concurrency/src/test/java/cn/mayiming/AppTest.java @@ -0,0 +1,38 @@ +package cn.mayiming; + +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 ); + } +} diff --git a/pom.xml b/pom.xml index c913cdc..51f7104 100644 --- a/pom.xml +++ b/pom.xml @@ -130,6 +130,7 @@ request-test pay-service stock-service + javamemories-concurrency