@@ -115,48 +115,48 @@ static class ImplFor656 extends BaseFor656 {
115
115
116
116
public void testDeserializationWithObject () throws Exception
117
117
{
118
- Inter inter = MAPPER .reader (Inter .class ).readValue ("{\" type\" : \" mine\" , \" blah\" : [\" a\" , \" b\" , \" c\" ]}" );
118
+ Inter inter = MAPPER .readerFor (Inter .class ).readValue ("{\" type\" : \" mine\" , \" blah\" : [\" a\" , \" b\" , \" c\" ]}" );
119
119
assertTrue (inter instanceof MyInter );
120
120
assertFalse (inter instanceof LegacyInter );
121
121
assertEquals (Arrays .asList ("a" , "b" , "c" ), ((MyInter ) inter ).blah );
122
122
}
123
123
124
124
public void testDeserializationWithString () throws Exception
125
125
{
126
- Inter inter = MAPPER .reader (Inter .class ).readValue ("\" a,b,c,d\" " );
126
+ Inter inter = MAPPER .readerFor (Inter .class ).readValue ("\" a,b,c,d\" " );
127
127
assertTrue (inter instanceof LegacyInter );
128
128
assertEquals (Arrays .asList ("a" , "b" , "c" , "d" ), ((MyInter ) inter ).blah );
129
129
}
130
130
131
131
public void testDeserializationWithArray () throws Exception
132
132
{
133
- Inter inter = MAPPER .reader (Inter .class ).readValue ("[\" a\" , \" b\" , \" c\" , \" d\" ]" );
133
+ Inter inter = MAPPER .readerFor (Inter .class ).readValue ("[\" a\" , \" b\" , \" c\" , \" d\" ]" );
134
134
assertTrue (inter instanceof LegacyInter );
135
135
assertEquals (Arrays .asList ("a" , "b" , "c" , "d" ), ((MyInter ) inter ).blah );
136
136
}
137
137
138
138
public void testDeserializationWithArrayOfSize2 () throws Exception
139
139
{
140
- Inter inter = MAPPER .reader (Inter .class ).readValue ("[\" a\" , \" b\" ]" );
140
+ Inter inter = MAPPER .readerFor (Inter .class ).readValue ("[\" a\" , \" b\" ]" );
141
141
assertTrue (inter instanceof LegacyInter );
142
142
assertEquals (Arrays .asList ("a" , "b" ), ((MyInter ) inter ).blah );
143
143
}
144
144
145
145
// [Databind#148]
146
146
public void testDefaultAsNoClass () throws Exception
147
147
{
148
- Object ob = MAPPER .reader (DefaultWithNoClass .class ).readValue ("{ }" );
148
+ Object ob = MAPPER .readerFor (DefaultWithNoClass .class ).readValue ("{ }" );
149
149
assertNull (ob );
150
- ob = MAPPER .reader (DefaultWithNoClass .class ).readValue ("{ \" bogus\" :3 }" );
150
+ ob = MAPPER .readerFor (DefaultWithNoClass .class ).readValue ("{ \" bogus\" :3 }" );
151
151
assertNull (ob );
152
152
}
153
153
154
154
// same, with 2.5 and Void.class
155
155
public void testDefaultAsVoid () throws Exception
156
156
{
157
- Object ob = MAPPER .reader (DefaultWithVoidAsDefault .class ).readValue ("{ }" );
157
+ Object ob = MAPPER .readerFor (DefaultWithVoidAsDefault .class ).readValue ("{ }" );
158
158
assertNull (ob );
159
- ob = MAPPER .reader (DefaultWithVoidAsDefault .class ).readValue ("{ \" bogus\" :3 }" );
159
+ ob = MAPPER .readerFor (DefaultWithVoidAsDefault .class ).readValue ("{ \" bogus\" :3 }" );
160
160
assertNull (ob );
161
161
}
162
162
0 commit comments