Skip to content

Commit

Permalink
fix: snyk code quality finding
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Apr 3, 2024
1 parent 6f61c2e commit dcbd889
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.zip.GZIPInputStream;

import static org.junit.Assert.assertEquals;
Expand All @@ -18,7 +19,8 @@ public void encodesCorrectly() {

byte[] encodedBytes = interceptor.encodeToBase64(jsonStr.getBytes());

assertEquals("eyJzcmMvYXBwLnRzIn06eyJjb25zb2xlLmxvZyhcImhlbGxvXCJ9Igo=", new String(encodedBytes));
assertEquals("eyJzcmMvYXBwLnRzIn06eyJjb25zb2xlLmxvZyhcImhlbGxvXCJ9Igo=",
new String(encodedBytes, StandardCharsets.UTF_8));
}

@Test
Expand Down

0 comments on commit dcbd889

Please sign in to comment.