Only run OpenSslEngineTests if OpenSsl is installed. Related to [#3732]

This commit is contained in:
Norman Maurer 2015-05-06 10:41:44 +02:00
parent 52eae1c9b3
commit 868eb49cd2

View File

@ -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;