File tree 2 files changed +4
-3
lines changed
src/test/java/com/fasterxml/jackson/dataformat/cbor
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Project: jackson-dataformat-cbor
6
6
7
7
2.8.0 (not yet released)
8
8
9
+ #18: Fail to report error for trying to write field name outside Object (root level)
10
+
9
11
2.7.3 (16-Mar-2016)
10
12
11
13
No changes since 2.7.2
Original file line number Diff line number Diff line change 1
- package com .fasterxml .jackson .dataformat .cbor . failing ;
1
+ package com .fasterxml .jackson .dataformat .cbor ;
2
2
3
3
import java .io .ByteArrayOutputStream ;
4
4
5
5
import com .fasterxml .jackson .core .JsonGenerationException ;
6
6
import com .fasterxml .jackson .dataformat .cbor .CBORGenerator ;
7
- import com .fasterxml .jackson .dataformat .cbor .CBORTestBase ;
8
7
9
8
public class GeneratorInvalidCallsTest extends CBORTestBase
10
9
{
@@ -16,7 +15,7 @@ public void testInvalidFieldNameInRoot() throws Exception
16
15
gen .writeStringField ("a" , "b" );
17
16
fail ("Should NOT allow writing of FIELD_NAME in root context" );
18
17
} catch (JsonGenerationException e ) {
19
- verifyException (e , "expecting field name" );
18
+ verifyException (e , "Can not write a field name" );
20
19
}
21
20
gen .close ();
22
21
}
You can’t perform that action at this time.
0 commit comments