summaryrefslogtreecommitdiffstats
path: root/jrt/tests/com/yahoo/jrt/EchoTest.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-11-28 15:11:14 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2018-11-28 15:11:14 +0100
commit45306ec347358fa57c162ddc725c37f9c077cdcc (patch)
tree0927692e4113c99aac1c68d64cf85c40eac1fd8e /jrt/tests/com/yahoo/jrt/EchoTest.java
parent910fd0b29b0fdaf7660dc22ed289dc0c7748fa89 (diff)
Use TlsContext to construct TlsCryptoEngine
Diffstat (limited to 'jrt/tests/com/yahoo/jrt/EchoTest.java')
-rw-r--r--jrt/tests/com/yahoo/jrt/EchoTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jrt/tests/com/yahoo/jrt/EchoTest.java b/jrt/tests/com/yahoo/jrt/EchoTest.java
index ff036af183b..09841cb3c04 100644
--- a/jrt/tests/com/yahoo/jrt/EchoTest.java
+++ b/jrt/tests/com/yahoo/jrt/EchoTest.java
@@ -9,7 +9,7 @@ import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
-import static com.yahoo.jrt.CryptoUtils.createTestSslContext;
+import static com.yahoo.jrt.CryptoUtils.createTestTlsContext;
import static org.junit.Assert.assertTrue;
@RunWith(Parameterized.class)
@@ -23,9 +23,9 @@ public class EchoTest {
@Parameter public CryptoEngine crypto;
@Parameters(name = "{0}") public static Object[] engines() {
- return new Object[] { new NullCryptoEngine(), new XorCryptoEngine(), new TlsCryptoEngine(createTestSslContext()),
- new MaybeTlsCryptoEngine(new TlsCryptoEngine(createTestSslContext()), false),
- new MaybeTlsCryptoEngine(new TlsCryptoEngine(createTestSslContext()), true) };
+ return new Object[] { new NullCryptoEngine(), new XorCryptoEngine(), new TlsCryptoEngine(createTestTlsContext()),
+ new MaybeTlsCryptoEngine(new TlsCryptoEngine(createTestTlsContext()), false),
+ new MaybeTlsCryptoEngine(new TlsCryptoEngine(createTestTlsContext()), true) };
}
@Before