@@ -216,63 +216,4 @@ public void testReturn_LV2Map() throws Exception {
216
216
assertEquals (String .class , paramType .getActualTypeArguments ()[0 ]);
217
217
assertEquals (Integer .class , paramType .getActualTypeArguments ()[1 ]);
218
218
}
219
-
220
- @ Test
221
- public void testParam_Primitive () throws Exception {
222
- Class <?> clazz = Level2Mapper .class ;
223
- Method method = clazz .getMethod ("simpleSelectPrimitive" , int .class );
224
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
225
- assertEquals (1 , result .length );
226
- assertEquals (int .class , result [0 ]);
227
- }
228
-
229
- @ Test
230
- public void testParam_Simple () throws Exception {
231
- Class <?> clazz = Level1Mapper .class ;
232
- Method method = clazz .getMethod ("simpleSelectVoid" , Integer .class );
233
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
234
- assertEquals (1 , result .length );
235
- assertEquals (Integer .class , result [0 ]);
236
- }
237
-
238
- @ Test
239
- public void testParam_Lv1Single () throws Exception {
240
- Class <?> clazz = Level1Mapper .class ;
241
- Method method = clazz .getMethod ("select" , Object .class );
242
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
243
- assertEquals (1 , result .length );
244
- assertEquals (String .class , result [0 ]);
245
- }
246
-
247
- @ Test
248
- public void testParam_Lv2Single () throws Exception {
249
- Class <?> clazz = Level2Mapper .class ;
250
- Method method = clazz .getMethod ("select" , Object .class );
251
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
252
- assertEquals (1 , result .length );
253
- assertEquals (String .class , result [0 ]);
254
- }
255
-
256
- @ Test
257
- public void testParam_Lv2Multiple () throws Exception {
258
- Class <?> clazz = Level2Mapper .class ;
259
- Method method = clazz .getMethod ("selectList" , Object .class , Object .class );
260
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
261
- assertEquals (2 , result .length );
262
- assertEquals (Integer .class , result [0 ]);
263
- assertEquals (String .class , result [1 ]);
264
- }
265
-
266
- @ Test
267
- public void testParam_Lv2CustomClass () throws Exception {
268
- Class <?> clazz = Level2Mapper .class ;
269
- Method method = clazz .getMethod ("selectCalculator" , Calculator .class );
270
- Type [] result = TypeParameterResolver .resolveParamTypes (method , clazz );
271
- assertEquals (1 , result .length );
272
- assertTrue (result [0 ] instanceof ParameterizedType );
273
- ParameterizedType paramType = (ParameterizedType ) result [0 ];
274
- assertEquals (Calculator .class , paramType .getRawType ());
275
- assertEquals (1 , paramType .getActualTypeArguments ().length );
276
- assertEquals (String .class , paramType .getActualTypeArguments ()[0 ]);
277
- }
278
219
}
0 commit comments