From f9ce4cf30f652f757696240482258620c784dfa6 Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Thu, 11 Jul 2024 14:14:24 -0700 Subject: [PATCH] Fixed broken tests --- .../webprotege/forms/data/MultiChoiceControlDataDtoTest.java | 2 +- .../webprotege/forms/data/SingleChoiceControlDataDtoTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/edu/stanford/protege/webprotege/forms/data/MultiChoiceControlDataDtoTest.java b/src/test/java/edu/stanford/protege/webprotege/forms/data/MultiChoiceControlDataDtoTest.java index 11a4031..66315d0 100644 --- a/src/test/java/edu/stanford/protege/webprotege/forms/data/MultiChoiceControlDataDtoTest.java +++ b/src/test/java/edu/stanford/protege/webprotege/forms/data/MultiChoiceControlDataDtoTest.java @@ -48,7 +48,7 @@ void shouldDeserialize() throws IOException { "http://example.org/A"), ImmutableMap.of()))), 3); var json = """ - {"@type":"MultiChoiceControlDataDto","depth":3,"control":{"@type":"MULTI_CHOICE","choicesSource":{"type":"Fixed","choices":[]},"defaultChoice":[]},"values":[{"@type":"IriFormControlDataDto","iri":{"@type":"IRIData","iri":"http://example.org/A"}}]} + {"@type":"MultiChoiceControlDataDto","depth":3,"control":{"@type":"MULTI_CHOICE","choicesSource":{"@type":"Fixed","choices":[]},"defaultChoice":[]},"values":[{"@type":"IriFormControlDataDto","iri":{"@type":"IRIData","iri":"http://example.org/A"}}]} """; var read = tester.read(new StringReader(json)); assertThat(read.getObject()).isEqualTo(expected); diff --git a/src/test/java/edu/stanford/protege/webprotege/forms/data/SingleChoiceControlDataDtoTest.java b/src/test/java/edu/stanford/protege/webprotege/forms/data/SingleChoiceControlDataDtoTest.java index 88a792e..caaa05e 100644 --- a/src/test/java/edu/stanford/protege/webprotege/forms/data/SingleChoiceControlDataDtoTest.java +++ b/src/test/java/edu/stanford/protege/webprotege/forms/data/SingleChoiceControlDataDtoTest.java @@ -54,7 +54,7 @@ void shouldDeserialize() throws IOException { "http://example.org/A"), ImmutableMap.of())), 3); var json = """ - {"@type":"SingleChoiceControlDataDto","depth":3,"control":{"@type":"SINGLE_CHOICE","widgetType":"ComboBox","choicesSource":{"type":"Fixed","choices":[]},"defaultChoice":null},"value":{"@type":"IriFormControlDataDto","iri":{"@type":"IRIData","iri":"http://example.org/A"}}} + {"@type":"SingleChoiceControlDataDto","depth":3,"control":{"@type":"SINGLE_CHOICE","widgetType":"ComboBox","choicesSource":{"@type":"Fixed","choices":[]},"defaultChoice":null},"value":{"@type":"IriFormControlDataDto","iri":{"@type":"IRIData","iri":"http://example.org/A"}}} """; var read = tester.read(new StringReader(json)); assertThat(read.getObject()).isEqualTo(expected);