We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b15f4ce commit 2483761Copy full SHA for 2483761
src/main/java/httpserver/App.java
@@ -4,4 +4,8 @@ public class App {
4
public static void main(String[] args) {
5
System.out.println("Hello World");
6
}
7
+
8
+ public String message() {
9
+ return "Hello World";
10
+ }
11
src/test/java/httpserver/AppTest.java
@@ -0,0 +1,13 @@
1
+package httpserver;
2
3
+import org.junit.Test;
+import static org.junit.Assert.*;
+public class AppTest {
+ @Test
+ public void returnsHelloWorld() throws Exception {
+ App app = new App();
+ assertEquals(app.message(), "hello World");
12
13
+}
0 commit comments