Skip to content

Commit

Permalink
test(matrix): explicit all x all throws 6004
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatRefrigerator committed Oct 28, 2024
1 parent d6511a1 commit a569bc3
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,26 @@ void expect4006004() {
.statusCode(400);
}

@Test
void expect4006004AllAll() {

JSONObject body = new JSONObject();
body.put("locations", getParameter("maximumLocations"));
body.put("sources", getParameter("sourcesAll"));
body.put("destinations", getParameter("destinationsAll"));

given()
.headers(jsonContent)
.pathParam("profile", getParameter("carProfile"))
.body(body.toString())
.when()
.post(getEndPointPath() + "/{profile}/json")
.then()
.assertThat()
.body("error.code", Matchers.is(MatrixErrorCodes.PARAMETER_VALUE_EXCEEDS_MAXIMUM))
.statusCode(400);
}

@Test
void expectResolveLocations() {
JSONObject body = new JSONObject();
Expand Down

0 comments on commit a569bc3

Please sign in to comment.