Converted project to Gradle.
This commit is contained in:
parent
b317749ed0
commit
134eb44f74
23 changed files with 482 additions and 35 deletions
14
app/src/main/java/org/example/App.java
Normal file
14
app/src/main/java/org/example/App.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* This source file was generated by the Gradle 'init' task
|
||||
*/
|
||||
package org.example;
|
||||
|
||||
public class App {
|
||||
public String getGreeting() {
|
||||
return "Hello World!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new App().getGreeting());
|
||||
}
|
||||
}
|
||||
14
app/src/test/java/org/example/AppTest.java
Normal file
14
app/src/test/java/org/example/AppTest.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* This source file was generated by the Gradle 'init' task
|
||||
*/
|
||||
package org.example;
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue