File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sdk-platform-java/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3131package com .google .showcase .v1beta1 .it ;
3232
3333import static com .google .common .truth .Truth .assertThat ;
34+ import static java .nio .charset .StandardCharsets .UTF_8 ;
3435import static org .junit .Assert .assertThrows ;
3536
3637import com .google .api .client .http .HttpTransport ;
3738import com .google .api .gax .core .NoCredentialsProvider ;
39+ import com .google .api .gax .retrying .RetrySettings ;
3840import com .google .api .gax .rpc .StatusCode ;
3941import com .google .api .gax .rpc .TransportChannelProvider ;
4042import 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
You can’t perform that action at this time.
0 commit comments