Added examples.
This commit is contained in:
parent
877e4bd622
commit
474263452f
85 changed files with 2429 additions and 107 deletions
12
examples/java/src/main/java/App.java
Normal file
12
examples/java/src/main/java/App.java
Normal 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.";
|
||||
}
|
||||
}
|
11
examples/java/src/test/java/AppTest.java
Normal file
11
examples/java/src/test/java/AppTest.java
Normal 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());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue