From 76aac7768ad9793c9ac429e2360ee73f49cd249c Mon Sep 17 00:00:00 2001 From: Myles Date: Fri, 25 Nov 2022 13:23:12 -0600 Subject: first commit --- app/src/main/java/tumble/App.java | 14 ++++++++++++++ app/src/test/java/tumble/AppTest.java | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 app/src/main/java/tumble/App.java create mode 100644 app/src/test/java/tumble/AppTest.java (limited to 'app/src') diff --git a/app/src/main/java/tumble/App.java b/app/src/main/java/tumble/App.java new file mode 100644 index 0000000..968a9ca --- /dev/null +++ b/app/src/main/java/tumble/App.java @@ -0,0 +1,14 @@ +/* + * This Java source file was generated by the Gradle 'init' task. + */ +package tumble; + +public class App { + public String getGreeting() { + return "Hello World!"; + } + + public static void main(String[] args) { + System.out.println(new App().getGreeting()); + } +} diff --git a/app/src/test/java/tumble/AppTest.java b/app/src/test/java/tumble/AppTest.java new file mode 100644 index 0000000..ac81ffd --- /dev/null +++ b/app/src/test/java/tumble/AppTest.java @@ -0,0 +1,14 @@ +/* + * This Java source file was generated by the Gradle 'init' task. + */ +package tumble; + +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"); + } +} -- cgit v1.2.3