Skip to content

Commit c698b9f

Browse files
committed
chore: fix compatibility workflows test
1 parent 2151423 commit c698b9f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

fj-doc-base-json/src/test/java/test/org/fugerit/java/doc/json/typehandler/TestJsonHandlers.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ class TestJsonHandlers {
1414

1515
private static final String INPUT_DOC = "<doc/>";
1616

17-
private static final String OUTPUT_DOC = "{\n" +
18-
" \"_t\" : \"doc\"\n" +
19-
"}";
20-
2117
@Test
2218
void testHandler() throws Exception {
2319
DocTypeHandler handler = DocTypeHandlerCoreJSONUTF8.HANDLER;
2420
try (StringReader from = new StringReader(INPUT_DOC);
2521
ByteArrayOutputStream os = new ByteArrayOutputStream();
2622
) {
2723
handler.handle(DocInput.newInput( handler.getType(), from ), DocOutput.newOutput(os));
28-
Assertions.assertTrue( os.toString().contains( OUTPUT_DOC ) );
24+
Assertions.assertTrue( os.toString().contains( "\"_t\" : \"doc\"" ) );
2925
}
3026
}
3127

fj-doc-base-yaml/src/test/java/test/org/fugerit/java/doc/yaml/typehandler/TestYamlHandlers.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ class TestYamlHandlers {
1414

1515
private static final String INPUT_DOC = "<doc/>";
1616

17-
private static final String OUTPUT_DOC = "---\n" +
18-
"_t: \"doc\"\n";
19-
2017
@Test
2118
void testHandler() throws Exception {
2219
DocTypeHandler handler = DocTypeHandlerCoreYAMLUTF8.HANDLER;
2320
try (StringReader from = new StringReader(INPUT_DOC);
2421
ByteArrayOutputStream os = new ByteArrayOutputStream();
2522
) {
2623
handler.handle(DocInput.newInput( handler.getType(), from ), DocOutput.newOutput(os));
27-
Assertions.assertTrue( os.toString().contains( OUTPUT_DOC ) );
24+
Assertions.assertTrue( os.toString().contains( "_t: \"doc\"" ) );
2825
}
2926
}
3027

0 commit comments

Comments
 (0)