File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ public void setupStubExercise101() {
2828
2929 /************************************************
3030 * Create a stub that will respond to a POST
31- * to /requestLoan with an HTTP status code 200
31+ * to /requestLoan with an HTTP status code 201
3232 ************************************************/
3333
3434 stubFor (post (urlEqualTo ("/requestLoan" ))
3535 .willReturn (aResponse ()
36- .withStatus (200 )
36+ .withStatus (201 )
3737 ));
3838 }
3939
@@ -80,7 +80,7 @@ public void testExercise101() {
8080 post ("/requestLoan" ).
8181 then ().
8282 assertThat ().
83- statusCode (200 );
83+ statusCode (201 );
8484 }
8585
8686 @ Test
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public void setupStubExercise101() {
2727
2828 /************************************************
2929 * Create a stub that will respond to a POST
30- * to /requestLoan with an HTTP status code 200
30+ * to /requestLoan with an HTTP status code 201
3131 ************************************************/
3232
3333 }
@@ -67,7 +67,7 @@ public void testExercise101() {
6767 post ("/requestLoan" ).
6868 then ().
6969 assertThat ().
70- statusCode (200 );
70+ statusCode (201 );
7171 }
7272
7373 @ Test
You can’t perform that action at this time.
0 commit comments