Added examples.

This commit is contained in:
Erik C. Thauvin 2018-07-01 21:50:49 -07:00
parent 877e4bd622
commit 474263452f
85 changed files with 2429 additions and 107 deletions

View file

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

View file

@ -0,0 +1,11 @@
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class AppTest {
@Test
void testAppHasAGreeting() {
App classUnderTest = new App();
assertNotNull("app should have a greeting", classUnderTest.getGreeting());
}
}