File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
fj-doc-base-json/src/test/java/test/org/fugerit/java/doc/json/typehandler
fj-doc-base-yaml/src/test/java/test/org/fugerit/java/doc/yaml/typehandler Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments