Compare commits
7 Commits
a391453d7e
...
6bf8a382d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bf8a382d8 | ||
| edbc7fe0de | |||
| df64e11566 | |||
| b9cf8bda86 | |||
| 88b3be65e5 | |||
| aebde4b5b2 | |||
| 3cb17a5931 |
@ -1,4 +1,4 @@
|
||||
# adsfasdfsadf
|
||||
# 操作说明2
|
||||
|
||||
当然可以!以下是一份 **专为协作者(如你)量身定制的完整 Git + CI/CD 协作流程指南**,基于你的真实使用场景:
|
||||
|
||||
|
||||
8
pom.xml
8
pom.xml
@ -11,4 +11,12 @@
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<version>5.12.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -4,5 +4,10 @@ public class App {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
}
|
||||
|
||||
public String greet() {
|
||||
return "Hello, World!";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
8
src/test/java/com/example/AppTest.java
Normal file
8
src/test/java/com/example/AppTest.java
Normal file
@ -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()); }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user