Skip to content

Commit

Permalink
Fix testPost_success() test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Oct 16, 2024
1 parent 7f0c0d5 commit 5d77bed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public void testPost_success() {
AccessController.doPrivileged(
(PrivilegedAction<SimpleHttpResponse>) () -> {
this.httpClient = HttpRestClient.getInstance();
URI uri = null;
URI uri;
try {
uri = new URI("https://httpbin.org/post");
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
String payload = "{\"message\": \"Hello world!\"}";
SimpleHttpResponse postResponse = this.httpClient.post(uri, payload);
SimpleHttpResponse postResponse = this.httpClient.post(uri, payload, "randomId");

String responseText = postResponse.getBodyText();
assertNotEquals(null, postResponse);
Expand Down

0 comments on commit 5d77bed

Please sign in to comment.