Skip to content

Commit 2483761

Browse files
committed
Add a failing test
1 parent b15f4ce commit 2483761

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/main/java/httpserver/App.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ public class App {
44
public static void main(String[] args) {
55
System.out.println("Hello World");
66
}
7+
8+
public String message() {
9+
return "Hello World";
10+
}
711
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package httpserver;
2+
3+
import org.junit.Test;
4+
5+
import static org.junit.Assert.*;
6+
7+
public class AppTest {
8+
@Test
9+
public void returnsHelloWorld() throws Exception {
10+
App app = new App();
11+
assertEquals(app.message(), "hello World");
12+
}
13+
}

0 commit comments

Comments
 (0)