mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-11 02:23:17 +00:00
Tests for java, minor extension for multilspy
Written by windsurf ang GPT4.1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.example</groupId>
|
||||
<artifactId>test_repo</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>Java Test Repo</name>
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
</project>
|
||||
@@ -0,0 +1,13 @@
|
||||
package test_repo;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Utils.printHello();
|
||||
Model model = new Model("Cascade");
|
||||
System.out.println(model.getName());
|
||||
acceptModel(model);
|
||||
}
|
||||
public static void acceptModel(Model m) {
|
||||
// Do nothing, just for LSP reference
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package test_repo;
|
||||
|
||||
public class Model {
|
||||
private String name;
|
||||
|
||||
public Model(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test_repo;
|
||||
|
||||
public class Utils {
|
||||
public static void printHello() {
|
||||
System.out.println("Hello from Utils!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user