Skip to content

Commit f2ca894

Browse files
committed
test(showcase): simplify EchoResponse class reference using import
1 parent 4c6bfe8 commit f2ca894

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITErrorDetails.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.google.rpc.ResourceInfo;
3434
import com.google.rpc.RetryInfo;
3535
import com.google.showcase.v1beta1.EchoClient;
36+
import com.google.showcase.v1beta1.EchoResponse;
3637
import com.google.showcase.v1beta1.FailEchoWithDetailsRequest;
3738
import com.google.showcase.v1beta1.PoetryError;
3839
import com.google.showcase.v1beta1.it.util.TestClientInitializer;
@@ -123,8 +124,7 @@ private void verifyErrorDetailsGrpc(ApiException exception) {
123124
assertThat(poetryError.getPoem()).isEqualTo("roses are red");
124125

125126
// Verify mismatched type returns null safely (mismatch unpacking)
126-
com.google.showcase.v1beta1.EchoResponse mismatchedDetail =
127-
errorDetails.getMessage(com.google.showcase.v1beta1.EchoResponse.class);
127+
EchoResponse mismatchedDetail = errorDetails.getMessage(EchoResponse.class);
128128
assertThat(mismatchedDetail).isNull();
129129
}
130130

0 commit comments

Comments
 (0)