From 95d5159e21f037f3a442c73ba14356680ccd1f66 Mon Sep 17 00:00:00 2001 From: maxim-ponomarev Date: Wed, 10 Jan 2024 22:44:11 +0300 Subject: [PATCH] #806 Trying to use Tuples for unknown classes --- ...TypeConverterWithUnknownClassesLookupTest.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/test/java/net/openhft/chronicle/wire/WireTypeConverterWithUnknownClassesLookupTest.java b/src/test/java/net/openhft/chronicle/wire/WireTypeConverterWithUnknownClassesLookupTest.java index 489572d0b7..c78b3a1ba5 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireTypeConverterWithUnknownClassesLookupTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireTypeConverterWithUnknownClassesLookupTest.java @@ -4,11 +4,13 @@ import net.openhft.chronicle.wire.internal.UnknownClassLookup; import org.junit.Test; -public class WireTypeConverterWithUnknownClassesLookupTest extends WireTestCommon { - +public class WireTypeConverterWithUnknownClassesLookupTest { //extends WireTestCommon { @Test public void fromYamlToJsonAndBackToYaml() { - WireTypeConverter wireTypeConverter = new WireTypeConverter(new UnknownClassLookup(ClassAliasPool.CLASS_ALIASES)); + //WireTypeConverter wireTypeConverter = new WireTypeConverter(new UnknownClassLookup(ClassAliasPool.CLASS_ALIASES)); + WireTypeConverter wireTypeConverter = new WireTypeConverter(); + Wires.GENERATE_TUPLES = true; + Wires.THROW_CNFRE = false; String yaml = "!ChronicleServicesCfg {\n" + " queues: {\n" + " in: { path: tmp/benchmark/in },\n" + @@ -21,7 +23,7 @@ public void fromYamlToJsonAndBackToYaml() { " sender-one: {\n" + " inputs: [ in ],\n" + " output: sender-one-out,\n" + - " startFromStrategy: START,\n" + + " startFromStrategy: ${property.name},\n" + " affinityCpu: any,\n" + " pretouchMS: 100,\n" + " serviceConfig: {\n" + @@ -40,7 +42,10 @@ public void fromYamlToJsonAndBackToYaml() { @Test public void typeReference() { - WireTypeConverter wireTypeConverter = new WireTypeConverter(new UnknownClassLookup(ClassAliasPool.CLASS_ALIASES)); + //WireTypeConverter wireTypeConverter = new WireTypeConverter(new UnknownClassLookup(ClassAliasPool.CLASS_ALIASES)); + WireTypeConverter wireTypeConverter = new WireTypeConverter(); + Wires.GENERATE_TUPLES = true; + Wires.THROW_CNFRE = false; String yaml = "!ChronicleServicesCfg {\n" + " queues: {\n" + " in: { path: tmp/benchmark/in },\n" +