diff options
Diffstat (limited to 'ex1/src')
| -rw-r--r-- | ex1/src/main/java/com/reflection/api/App.java | 10 | ||||
| -rw-r--r-- | ex1/src/test/java/com/reflection/api/AppTest.java | 19 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ex1/src/main/java/com/reflection/api/App.java b/ex1/src/main/java/com/reflection/api/App.java new file mode 100644 index 0000000..04cd919 --- /dev/null +++ b/ex1/src/main/java/com/reflection/api/App.java | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | package com.reflection.api; | ||
| 2 | |||
| 3 | /** | ||
| 4 | * Hello world! | ||
| 5 | */ | ||
| 6 | public class App { | ||
| 7 | public static void main(String[] args) { | ||
| 8 | System.out.println("Hello World!"); | ||
| 9 | } | ||
| 10 | } | ||
diff --git a/ex1/src/test/java/com/reflection/api/AppTest.java b/ex1/src/test/java/com/reflection/api/AppTest.java new file mode 100644 index 0000000..70f7e97 --- /dev/null +++ b/ex1/src/test/java/com/reflection/api/AppTest.java | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | package com.reflection.api; | ||
| 2 | |||
| 3 | import static org.junit.jupiter.api.Assertions.assertTrue; | ||
| 4 | |||
| 5 | import org.junit.jupiter.api.Test; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Unit test for simple App. | ||
| 9 | */ | ||
| 10 | public class AppTest { | ||
| 11 | |||
| 12 | /** | ||
| 13 | * Rigorous Test :-) | ||
| 14 | */ | ||
| 15 | @Test | ||
| 16 | public void shouldAnswerWithTrue() { | ||
| 17 | assertTrue(true); | ||
| 18 | } | ||
| 19 | } | ||