Skip to content

Commit 7ec89f7

Browse files
committed
tests: resolve comments
1 parent 433c431 commit 7ec89f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk-platform-java/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelGoldenMetrics.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
package com.google.showcase.v1beta1.it;
3232

3333
import static com.google.common.truth.Truth.assertThat;
34+
import static java.nio.charset.StandardCharsets.UTF_8;
3435
import static org.junit.Assert.assertThrows;
3536

3637
import com.google.api.client.http.HttpTransport;
3738
import com.google.api.gax.core.NoCredentialsProvider;
39+
import com.google.api.gax.retrying.RetrySettings;
3840
import com.google.api.gax.rpc.StatusCode;
3941
import com.google.api.gax.rpc.TransportChannelProvider;
4042
import com.google.api.gax.rpc.UnavailableException;
@@ -579,7 +581,7 @@ public com.google.api.client.http.LowLevelHttpResponse execute() {
579581
return new com.google.api.client.http.LowLevelHttpResponse() {
580582
@Override
581583
public InputStream getContent() {
582-
return new ByteArrayInputStream("{}".getBytes());
584+
return new ByteArrayInputStream("{}".getBytes(UTF_8));
583585
}
584586

585587
@Override
@@ -613,7 +615,7 @@ public InputStream getContent() {
613615
return new com.google.api.client.http.LowLevelHttpResponse() {
614616
@Override
615617
public InputStream getContent() {
616-
return new ByteArrayInputStream("{\"content\":\"metrics-test\"}".getBytes());
618+
return new ByteArrayInputStream("{\"content\":\"metrics-test\"}".getBytes(UTF_8));
617619
}
618620

619621
@Override

0 commit comments

Comments
 (0)