File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/test/java/com/fasterxml/jackson/databind Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
import java .util .*;
4
4
5
5
import com .fasterxml .jackson .databind .*;
6
- import com .fasterxml .jackson .databind .jsonschema .JsonSchema ;
7
6
8
7
/**
9
8
* Trivial test to ensure <code>JsonSchema</code> can be also deserialized
10
9
*/
11
- @ SuppressWarnings ("deprecation" )
12
10
public class TestReadJsonSchema
13
11
extends com .fasterxml .jackson .databind .BaseMapTest
14
12
{
@@ -48,6 +46,7 @@ static class Schemable {
48
46
* Verifies that a simple schema that is serialized can be
49
47
* deserialized back to equal schema instance
50
48
*/
49
+ @ SuppressWarnings ("deprecation" )
51
50
public void testDeserializeSimple () throws Exception
52
51
{
53
52
ObjectMapper mapper = new ObjectMapper ();
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ public void testArrayOutOfBounds884() throws Exception
32
32
props .add (new ObjectIdValueProperty (new MyObjectIdReader ("pk" ), md ));
33
33
props .add (new ObjectIdValueProperty (new MyObjectIdReader ("firstName" ), md ));
34
34
BeanPropertyMap propMap = new BeanPropertyMap (false , props ,
35
- new HashMap <String ,List <PropertyName >>());
35
+ new HashMap <String ,List <PropertyName >>(),
36
+ Locale .getDefault ());
36
37
propMap = propMap .withProperty (new ObjectIdValueProperty (new MyObjectIdReader ("@id" ), md ));
37
38
assertNotNull (propMap );
38
39
}
You can’t perform that action at this time.
0 commit comments