Skip to content

Commit

Permalink
Fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Jul 11, 2024
1 parent a494e2a commit f9ce4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f9ce4cf

Please sign in to comment.