File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
gax-java/gax-grpc/src/test/java/com/google/api/gax/grpc Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -982,6 +982,20 @@ private FixedHeaderProvider getHeaderProviderWithApiKeyHeader() {
982982 return FixedHeaderProvider .create (header );
983983 }
984984
985+ @ Test
986+ void createPlaintextToS2AChannelCredentials_emptyPlaintextAddress_returnsNull () {
987+ InstantiatingGrpcChannelProvider provider =
988+ InstantiatingGrpcChannelProvider .newBuilder ().build ();
989+ assertThat (provider .createPlaintextToS2AChannelCredentials ("" )).isNull ();
990+ }
991+
992+ @ Test
993+ void createPlaintextToS2AChannelCredentials_success () {
994+ InstantiatingGrpcChannelProvider provider =
995+ InstantiatingGrpcChannelProvider .newBuilder ().build ();
996+ assertThat (provider .createPlaintextToS2AChannelCredentials ("localhost:8080" )).isNotNull ();
997+ }
998+
985999 @ Test
9861000 void createMtlsToS2AChannelCredentials_missingAllFiles_throws () throws IOException {
9871001 InstantiatingGrpcChannelProvider provider =
You can’t perform that action at this time.
0 commit comments