File tree 1 file changed +23
-0
lines changed
yaml/src/test/java/com/fasterxml/jackson/dataformat/yaml/failing
1 file changed +23
-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
+ import java .util .Map ;
5
+
6
+ import com .fasterxml .jackson .dataformat .yaml .ModuleTestBase ;
7
+ import com .fasterxml .jackson .dataformat .yaml .YAMLMapper ;
8
+
9
+ // for [dataformats-text#306]
10
+ public class NameQuoting306Test extends ModuleTestBase
11
+ {
12
+ private final YAMLMapper MAPPER = newObjectMapper ();
13
+
14
+ // for [dataformats-text#306]
15
+ public void testComplexName () throws Exception
16
+ {
17
+ final String key = "SomeKey:\n OtherLine" ;
18
+ Map <?,?> input = Collections .singletonMap (key , 302 );
19
+ final String doc = MAPPER .writeValueAsString (input );
20
+ Map <?,?> actual = MAPPER .readValue (doc , Map .class );
21
+ assertEquals (input , actual );
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments