mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Remove a reference to sun.security.provider.certpath
sun.security.provider.certpath.SunCertPathBuilderException is not visible in JDK 9, see: bazelbuild/bazel#6154 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213068821
This commit is contained in:
parent
8d675a4b8c
commit
3b62a51424
1 changed files with 2 additions and 2 deletions
|
@ -37,6 +37,7 @@ import io.netty.handler.ssl.SslProvider;
|
|||
import io.netty.handler.ssl.util.SelfSignedCertificate;
|
||||
import java.security.KeyPair;
|
||||
import java.security.PrivateKey;
|
||||
import java.security.cert.CertPathBuilderException;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
import javax.net.ssl.SSLException;
|
||||
|
@ -46,7 +47,6 @@ import org.junit.runner.RunWith;
|
|||
import org.junit.runners.Parameterized;
|
||||
import org.junit.runners.Parameterized.Parameter;
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import sun.security.provider.certpath.SunCertPathBuilderException;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link SslClientInitializer}.
|
||||
|
@ -142,7 +142,7 @@ public class SslClientInitializerTest {
|
|||
nettyRule.setUpClient(localAddress, PROTOCOL, sslClientInitializer);
|
||||
// The connection is now terminated, both the client side and the server side should get
|
||||
// exceptions.
|
||||
nettyRule.assertThatClientRootCause().isInstanceOf(SunCertPathBuilderException.class);
|
||||
nettyRule.assertThatClientRootCause().isInstanceOf(CertPathBuilderException.class);
|
||||
nettyRule.assertThatServerRootCause().isInstanceOf(SSLException.class);
|
||||
assertThat(nettyRule.getChannel().isActive()).isFalse();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue