From 6bf8a382d849c820247284ef773b3fd01b066a72 Mon Sep 17 00:00:00 2001 From: kale Date: Fri, 5 Dec 2025 05:16:36 -0500 Subject: [PATCH 1/2] =?UTF-8?q?[fix]:[=E6=B7=BB=E5=8A=A0java=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 8 ++++++++ src/main/java/com/example/App.java | 5 +++++ src/test/java/com/example/AppTest.java | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 src/test/java/com/example/AppTest.java diff --git a/pom.xml b/pom.xml index c921cec..3668646 100644 --- a/pom.xml +++ b/pom.xml @@ -11,4 +11,12 @@ 17 17 + + + org.junit.jupiter + junit-jupiter + 5.12.2 + test + + \ No newline at end of file diff --git a/src/main/java/com/example/App.java b/src/main/java/com/example/App.java index 594d998..a6e9422 100644 --- a/src/main/java/com/example/App.java +++ b/src/main/java/com/example/App.java @@ -4,5 +4,10 @@ public class App { public static void main(String[] args) { System.out.println("Hello, World!"); } + + public String greet() { + return "Hello, World!"; + } + } diff --git a/src/test/java/com/example/AppTest.java b/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..acec55a --- /dev/null +++ b/src/test/java/com/example/AppTest.java @@ -0,0 +1,8 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +public class AppTest { + @Test public void testGreet() { App app = new App(); assertEquals("Hello, World!", app.greet()); } +} -- 2.47.2 From f4224b68ee7fef9ce329ea7837f02f0d643fa587 Mon Sep 17 00:00:00 2001 From: kale Date: Fri, 5 Dec 2025 05:20:23 -0500 Subject: [PATCH 2/2] =?UTF-8?q?[fix]:[=E4=BF=AE=E6=94=B9ci=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF=E8=A7=A6=E5=8F=91=E4=BA=8B=E4=BB=B6jtkf]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0e6fb44..950f769 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,6 @@ name: multi-lang-ci trigger: event: - - push - pull_request branch: - main -- 2.47.2