Skip to content

Commit 00485ce

Browse files
committed
Fixed assertSuccess
1 parent 3f58c93 commit 00485ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/javawebstack/httpserver/test/TestExchange.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ public TestExchange assertUnauthorized(String message){
9696
return this;
9797
}
9898
public TestExchange assertSuccess(){
99-
Assertions.assertEquals(2, (mockRes.getStatus() / 100 ) * 100);
99+
Assertions.assertEquals(200, (mockRes.getStatus() / 100 ) * 100);
100100
return this;
101101
}
102102
public TestExchange assertSuccess(String message){
103-
Assertions.assertEquals(2, (mockRes.getStatus() / 100 ) * 100, message);
103+
Assertions.assertEquals(200, (mockRes.getStatus() / 100 ) * 100, message);
104104
return this;
105105
}
106106
public TestExchange assertError(){

0 commit comments

Comments
 (0)