Skip to content

Commit c78610c

Browse files
Restore App entry point and basic tests from main
1 parent 89c5ddf commit c78610c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

src/main/java/org/example/App.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package org.example;
2+
3+
public class App {
4+
public static void main(String[] args) {
5+
new TcpServer(8080).start();
6+
}
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.example;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.assertj.core.api.Assertions.assertThat;
6+
7+
public class AppIT {
8+
@Test
9+
void itTest() {
10+
assertThat(false).isFalse();
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.example;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.assertj.core.api.Assertions.assertThat;
6+
7+
class AppTest {
8+
@Test
9+
void test() {
10+
assertThat(true).isTrue();
11+
}
12+
}

0 commit comments

Comments
 (0)