We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef0fda commit 5b886bfCopy full SHA for 5b886bf
src/main/java/httpserver/response/ConflictResponse.java
@@ -0,0 +1,8 @@
1
+package httpserver.response;
2
+
3
+public class ConflictResponse extends Response {
4
+ @Override
5
+ public int getStatusCode() {
6
+ return 409;
7
+ }
8
+}
src/test/java/httpserver/response/ConflictResponseTest.java
@@ -0,0 +1,14 @@
+import org.junit.Test;
+import static org.junit.Assert.*;
+public class ConflictResponseTest {
+ @Test
9
+ public void has409StatusCode() throws Exception {
10
+ ConflictResponse conflictResponse = new ConflictResponse();
11
12
+ assertEquals(409, conflictResponse.getStatusCode());
13
14
0 commit comments