File tree 1 file changed +21
-0
lines changed
yaml/src/test/java/com/fasterxml/jackson/dataformat/yaml/failing
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .fasterxml .jackson .dataformat .yaml .failing ;
2
+
3
+ import java .util .Collections ;
4
+
5
+ import com .fasterxml .jackson .dataformat .yaml .ModuleTestBase ;
6
+ import com .fasterxml .jackson .dataformat .yaml .YAMLGenerator ;
7
+ import com .fasterxml .jackson .dataformat .yaml .YAMLMapper ;
8
+
9
+ public class SimpleGeneration215Tests extends ModuleTestBase
10
+ {
11
+ // [dataformats-text#215]: setting used in constructor
12
+ public void testStartMarkerViaWriter () throws Exception
13
+ {
14
+ final String output = YAMLMapper .builder ().build ()
15
+ .writer ()
16
+ .without (YAMLGenerator .Feature .WRITE_DOC_START_MARKER )
17
+ .writeValueAsString (Collections .singletonMap ("key" , "value" ))
18
+ .trim ();
19
+ assertEquals ("key: \" value\" " , output );
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments