diff options
| author | Kostya <mail@sartin.in> | 2026-07-22 09:21:23 +0000 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-07-22 09:21:23 +0000 |
| commit | 0f676f68c13d5e18864f7bc9f4a022ff6291ff22 (patch) | |
| tree | bf0039f9319da21a8858e2135417f7499e9b42e8 /ex1/src | |
| parent | e8825b8c125e6006a97fca3b5ec2b3c2a8ba6f53 (diff) | |
| download | java-course-0f676f68c13d5e18864f7bc9f4a022ff6291ff22.tar.gz java-course-0f676f68c13d5e18864f7bc9f4a022ff6291ff22.tar.xz java-course-0f676f68c13d5e18864f7bc9f4a022ff6291ff22.zip | |
project bootstrap
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 | } | ||