Skip to content

Commit

Permalink
test (SMS/Group): Refine comment/content of create group helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Feb 3, 2025
1 parent d02ccc6 commit 07e61f3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void createDefault() throws ApiException {
"/xms/v1/" + URLPathUtils.encodePathSegment(SERVICE_PLAN_ID) + "/groups",
HttpMethod.POST,
Collections.emptyList(),
// SMS is expecting an empty body but do not accept a NULL one
// The SMS API permits an empty body but rejects a null value
"{}",
Collections.emptyMap(),
Collections.singletonList(HttpContentType.APPLICATION_JSON),
Expand All @@ -140,9 +140,10 @@ void createDefault() throws ApiException {
argThat(new HttpRequestMatcher(httpRequest))))
.thenReturn(httpResponse);

Group response = service.create();
service.create();

TestHelpers.recursiveEquals(response, groupDto);
// response does not matter: test purpose is to ensure an empty body was properly sent onto
// request
}

@Test
Expand Down

0 comments on commit 07e61f3

Please sign in to comment.