@@ -44,31 +44,31 @@ private ObjectMapper newJsonMapperWithUnlimitedStringSizeSupport() {
44
44
public void testBigString () throws Exception
45
45
{
46
46
try {
47
- MAPPER .readValue (generateJson ("string" , 1001000 ), StringWrapper .class );
47
+ MAPPER .readValue (generateJson ("string" , 5001000 ), StringWrapper .class );
48
48
fail ("expected JsonMappingException" );
49
49
} catch (DatabindException e ) {
50
50
assertTrue ("unexpected exception message: " + e .getMessage (),
51
- e .getMessage ().startsWith ("String length (1001000 ) exceeds the maximum length (1000000 )" ));
51
+ e .getMessage ().startsWith ("String length (5001000 ) exceeds the maximum length (5000000 )" ));
52
52
}
53
53
}
54
54
55
55
public void testBiggerString () throws Exception
56
56
{
57
57
try {
58
- MAPPER .readValue (generateJson ("string" , 2_000_000 ), StringWrapper .class );
58
+ MAPPER .readValue (generateJson ("string" , 6_000_000 ), StringWrapper .class );
59
59
fail ("expected JsonMappingException" );
60
60
} catch (DatabindException e ) {
61
61
final String message = e .getMessage ();
62
62
// this test fails when the TextBuffer is being resized, so we don't yet know just how big the string is
63
- // so best not to assert that the String length value in the message is the full 2000000 value
63
+ // so best not to assert that the String length value in the message is the full 6000000 value
64
64
assertTrue ("unexpected exception message: " + message , message .startsWith ("String length" ));
65
- assertTrue ("unexpected exception message: " + message , message .contains ("exceeds the maximum length (1000000 )" ));
65
+ assertTrue ("unexpected exception message: " + message , message .contains ("exceeds the maximum length (5000000 )" ));
66
66
}
67
67
}
68
68
69
69
public void testUnlimitedString () throws Exception
70
70
{
71
- final int len = 1_001_000 ;
71
+ final int len = 5_001_000 ;
72
72
StringWrapper sw = newJsonMapperWithUnlimitedStringSizeSupport ()
73
73
.readValue (generateJson ("string" , len ), StringWrapper .class );
74
74
assertEquals (len , sw .string .length ());
0 commit comments