Skip to content

Commit 4a79745

Browse files
committed
Small change to first exercise
1 parent d0c5404 commit 4a79745

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/java/answers/WireMockAnswers1Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/test/java/exercises/WireMockExercises1Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)