Redoing gradle build without idea

The project structure was not as I liked
So I made a new one without idea and with simple gradle init
This commit is contained in:
2023-04-02 21:26:32 +02:00
parent 6f99b82fd9
commit 58f17472d8
25 changed files with 300 additions and 258 deletions

View File

@ -0,0 +1,14 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package jchess;
public class App {
public String getGreeting() {
return "Hello World!";
}
public static void main(String[] args) {
System.out.println(new App().getGreeting());
}
}

View File

@ -0,0 +1,14 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package jchess;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AppTest {
@Test void appHasAGreeting() {
App classUnderTest = new App();
assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
}
}