Skip to content

Commit

Permalink
Only run OpenSslEngineTests if OpenSsl is installed. Related to [nett…
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed May 6, 2015
1 parent 52eae1c commit 868eb49
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 868eb49

Please sign in to comment.