Skip to content

Commit

Permalink
Pull request #253: RUM-9059 Fixing HTTPClienTest for Java7
Browse files Browse the repository at this point in the history
Merge in OP/openkit-java from feature/RUM-9059-mockito-4.x-update-destroyed-compatibility-with-java-7-for-open-kit-java to main

* commit '923e0932da7ec3711020378f886a407411ad1015':
  RUM-9059 Fixing HTTPClienTest for Java7

GitOrigin-RevId: 87bb8509b40aaeb4f82c8fcf425a9c7e73cbacd6
  • Loading branch information
TheHighriser authored and openkitdt committed Feb 13, 2023
1 parent 7d705d9 commit ed2274a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ public void sendBeaconRequestAndEnsureContentLengthIsLengthOfCompressedSize() th

// ensure that Content-Type and Content-Length were set
verify(connection, times(1)).setRequestProperty("Content-Encoding", "gzip");
verify(connection, times(1)).setRequestProperty("Content-Length", Integer.toString(compressedText.length));
verify(connection, times(1)).setRequestProperty("Content-Type", "text/plain; charset=utf-8");
verify(connection, times(1)).setFixedLengthStreamingMode(compressedText.length);

// ensure that the message body is as expected
assertThat(os.toByteArray(), is(equalTo(compressedText)));
Expand Down

0 comments on commit ed2274a

Please sign in to comment.