File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
src/test/java/tools/jackson/dataformat/xml/deser Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .math .BigDecimal ;
4
4
5
- import com .fasterxml .jackson .annotation .JsonProperty ;
6
- import com .fasterxml .jackson .annotation .JsonRootName ;
7
- import com .fasterxml .jackson .annotation .JsonSubTypes ;
8
- import com .fasterxml .jackson .annotation .JsonTypeInfo ;
9
- import com .fasterxml .jackson .annotation .JsonUnwrapped ;
5
+ import com .fasterxml .jackson .annotation .*;
10
6
11
7
import tools .jackson .core .StreamReadConstraints ;
12
- import tools .jackson .databind . DatabindException ;
8
+ import tools .jackson .core . exc . StreamConstraintsException ;
13
9
import tools .jackson .databind .ObjectMapper ;
14
10
import tools .jackson .dataformat .xml .XmlFactory ;
15
11
import tools .jackson .dataformat .xml .XmlMapper ;
@@ -135,9 +131,9 @@ public void testVeryBigDecimalUnwrapped() throws Exception
135
131
try {
136
132
MAPPER .readValue (DOC , NestedBigDecimalHolder2784 .class );
137
133
fail ("expected DatabindException" );
138
- } catch (DatabindException jme ) {
139
- assertTrue ("unexpected exception message: " + jme .getMessage (),
140
- jme .getMessage ().startsWith ("Number value length (1200) exceeds the maximum allowed" ));
134
+ } catch (StreamConstraintsException e ) {
135
+ assertTrue ("unexpected exception message: " + e .getMessage (),
136
+ e .getMessage ().startsWith ("Number value length (1200) exceeds the maximum allowed" ));
141
137
}
142
138
}
143
139
You can’t perform that action at this time.
0 commit comments