Skip to content

Commit

Permalink
[MODORG-54] - Code smell fix, coverage increase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzmitry_Butramyou committed Oct 30, 2023
1 parent f4b6264 commit 6580e50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/org/folio/rest/impl/MockServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ public static void init(int mockPort) {
.willReturn(aResponse().withBody(bankingInformation.encode())
.withHeader(CONTENT_TYPE, APPLICATION_JSON)
.withStatus(201)));

wireMockServer.stubFor(get(urlEqualTo(
String.format(resourcesPath(BANKING_INFORMATION_ENTITY.getResource()) + SEARCH_PARAMS, 10, 0, buildQuery("id==" + BANKING_INFORMATION_ENTITY.getId()))))
.willReturn(aResponse().withBody(BANKING_INFORMATION_ENTITY.getCollection()
.encode())
.withHeader(CONTENT_TYPE, APPLICATION_JSON)
.withStatus(200)));
}

public static void destroy() {
Expand Down

0 comments on commit 6580e50

Please sign in to comment.