File tree Expand file tree Collapse file tree
src/test/java/tools/jackson/dataformat/xml/ser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import org .junit .jupiter .api .Test ;
77
8- import tools .jackson .databind . DatabindException ;
8+ import tools .jackson .core . JacksonException ;
99import tools .jackson .dataformat .xml .XmlMapper ;
1010import tools .jackson .dataformat .xml .XmlTestUtil ;
1111import tools .jackson .dataformat .xml .XmlWriteFeature ;
@@ -29,7 +29,7 @@ public void test2DPrimitiveArrayFailsFast() throws Exception
2929 try {
3030 MAPPER .writeValueAsString (new boolean [][] { { true }, { false } });
3131 fail ("Should not pass: nested arrays must be rejected" );
32- } catch (DatabindException e ) {
32+ } catch (JacksonException e ) {
3333 verifyException (e , "does not support nested arrays" );
3434 }
3535 }
@@ -43,7 +43,7 @@ public void testNestedListFailsFast() throws Exception
4343 try {
4444 MAPPER .writeValueAsString (nested );
4545 fail ("Should not pass: nested Collections must be rejected" );
46- } catch (DatabindException e ) {
46+ } catch (JacksonException e ) {
4747 verifyException (e , "does not support nested arrays" );
4848 }
4949 }
You can’t perform that action at this time.
0 commit comments