Skip to content

Commit

Permalink
#806 Trying to use Tuples for unknown classes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-ponomarev committed Jan 10, 2024
1 parent 4756379 commit 95d5159
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand All @@ -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" +
Expand All @@ -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" +
Expand Down

0 comments on commit 95d5159

Please sign in to comment.