Only run OpenSslEngineTests if OpenSsl is installed. Related to [#3732]
This commit is contained in:
parent
52eae1c9b3
commit
868eb49cd2
@ -15,7 +15,33 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
public class OpenSslEngineTest extends SSLEngineTest {
|
||||
@Override
|
||||
public void testMutualAuthSameCerts() throws Exception {
|
||||
assumeTrue(OpenSsl.isAvailable());
|
||||
super.testMutualAuthSameCerts();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testMutualAuthDiffCerts() throws Exception {
|
||||
assumeTrue(OpenSsl.isAvailable());
|
||||
super.testMutualAuthDiffCerts();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testMutualAuthDiffCertsServerFailure() throws Exception {
|
||||
assumeTrue(OpenSsl.isAvailable());
|
||||
super.testMutualAuthDiffCertsServerFailure();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testMutualAuthDiffCertsClientFailure() throws Exception {
|
||||
assumeTrue(OpenSsl.isAvailable());
|
||||
super.testMutualAuthDiffCertsClientFailure();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SslProvider sslProvider() {
|
||||
return SslProvider.OPENSSL;
|
||||
|
Loading…
Reference in New Issue
Block a user