@@ -203,21 +203,24 @@ public void test() throws Exception {
203
203
204
204
@ Test
205
205
public void invokeMethodWithAutoboxingAndUnboxing () {
206
- int difference = invokeMethod (component , "subtract" , 5 , 2 );
207
- assertEquals ("subtract(5, 2)" , 3 , difference );
206
+ // IntelliJ IDEA 11 won't accept int assignment here
207
+ Integer difference = invokeMethod (component , "subtract" , 5 , 2 );
208
+ assertEquals ("subtract(5, 2)" , 3 , difference .intValue ());
208
209
}
209
210
210
211
@ Ignore ("[SPR-8644] findMethod() does not currently support var-args" )
211
212
@ Test
212
213
public void invokeMethodWithPrimitiveVarArgs () {
213
- int sum = invokeMethod (component , "add" , 1 , 2 , 3 , 4 );
214
- assertEquals ("add(1,2,3,4)" , 10 , sum );
214
+ // IntelliJ IDEA 11 won't accept int assignment here
215
+ Integer sum = invokeMethod (component , "add" , 1 , 2 , 3 , 4 );
216
+ assertEquals ("add(1,2,3,4)" , 10 , sum .intValue ());
215
217
}
216
218
217
219
@ Test
218
220
public void invokeMethodWithPrimitiveVarArgsAsSingleArgument () {
219
- int sum = invokeMethod (component , "add" , new int [] { 1 , 2 , 3 , 4 });
220
- assertEquals ("add(1,2,3,4)" , 10 , sum );
221
+ // IntelliJ IDEA 11 won't accept int assignment here
222
+ Integer sum = invokeMethod (component , "add" , new int [] { 1 , 2 , 3 , 4 });
223
+ assertEquals ("add(1,2,3,4)" , 10 , sum .intValue ());
221
224
}
222
225
223
226
@ Test
0 commit comments