Skip to content

Commit

Permalink
Remove extra stubFor() in spring-boot example (#241)
Browse files Browse the repository at this point in the history
This commit  removes an extra stubFor() in the code example. It was added twice by mistake and causes a compilation error.
  • Loading branch information
silver-mx authored Feb 2, 2024
1 parent e8433d3 commit cd0e742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _docs/solutions/spring-boot.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ class TodoControllerTests {
void aTest() {
// returns a URL to WireMockServer instance
env.getProperty("user-client.url");
wiremock.stubFor(stubFor(get("/todolist").willReturn(aResponse()
wiremock.stubFor(get("/todolist").willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody("""
[
{ "id": 1, "userId": 1, "title": "my todo" },
]
""")
)));
));
}
}
```
Expand Down

0 comments on commit cd0e742

Please sign in to comment.