Skip to content

Commit

Permalink
fix TestSslContextFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
smiklosovic committed Jun 27, 2024
1 parent 0f0161c commit 5177e1c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.netty.handler.ssl.util.SelfSignedCertificate;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import sun.security.ssl.SSLEngineImpl;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -46,7 +45,7 @@ public void testCreateJdkSslContext() {

SslContext context = contextFactory.createSslContext();

assertThat(context.newEngine(ByteBufAllocator.DEFAULT)).isInstanceOf(SSLEngineImpl.class);
assertThat(context.newEngine(ByteBufAllocator.DEFAULT).getClass().getSimpleName()).isEqualTo("SSLEngineImpl");
}

@Test
Expand Down Expand Up @@ -163,7 +162,7 @@ public void testCreateSslContextWithServerKeyAndCert() {

SslContext context = contextFactory.createSslContext();

assertThat(context.newEngine(ByteBufAllocator.DEFAULT)).isInstanceOf(SSLEngineImpl.class);
assertThat(context.newEngine(ByteBufAllocator.DEFAULT).getClass().getSimpleName()).isEqualTo("SSLEngineImpl");
}

@Test
Expand All @@ -175,7 +174,7 @@ public void testCreateSslContextWithServerKeyAndCertWithPassword() {

SslContext context = contextFactory.createSslContext();

assertThat(context.newEngine(ByteBufAllocator.DEFAULT)).isInstanceOf(SSLEngineImpl.class);
assertThat(context.newEngine(ByteBufAllocator.DEFAULT).getClass().getSimpleName()).isEqualTo("SSLEngineImpl");
}

@Test
Expand Down

0 comments on commit 5177e1c

Please sign in to comment.