File tree 1 file changed +7
-2
lines changed
src/test/java/com/fasterxml/jackson/dataformat/xml/failing
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .dataformat .xml .failing ;
2
2
3
+ import com .fasterxml .jackson .core .exc .StreamReadException ;
3
4
import com .fasterxml .jackson .databind .JsonNode ;
4
5
import com .fasterxml .jackson .dataformat .xml .XmlMapper ;
5
6
import com .fasterxml .jackson .dataformat .xml .XmlTestBase ;
@@ -11,7 +12,11 @@ public class Fuzz465_32906_CDataReadTest extends XmlTestBase
11
12
public void testIssue465 () throws Exception
12
13
{
13
14
byte [] doc = readResource ("/data/fuzz-32906.xml" );
14
- JsonNode root = MAPPER .readTree (doc );
15
- assertNotNull (root );
15
+ try {
16
+ JsonNode root = MAPPER .readTree (doc );
17
+ fail ("Should not pass, got: " +root );
18
+ } catch (StreamReadException e ) {
19
+ verifyException (e , "Unexpected EOF in CDATA" );
20
+ }
16
21
}
17
22
}
You can’t perform that action at this time.
0 commit comments