Skip to content

Commit 1a3d9a2

Browse files
jhoellercbeams
authored andcommitted
IntelliJ IDEA 11 project setup
1 parent bd6c3be commit 1a3d9a2

File tree

2 files changed

+1217
-1149
lines changed

2 files changed

+1217
-1149
lines changed

org.springframework.test/src/test/java/org/springframework/test/util/ReflectionTestUtilsTests.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,21 +203,24 @@ public void test() throws Exception {
203203

204204
@Test
205205
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());
208209
}
209210

210211
@Ignore("[SPR-8644] findMethod() does not currently support var-args")
211212
@Test
212213
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());
215217
}
216218

217219
@Test
218220
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());
221224
}
222225

223226
@Test

0 commit comments

Comments
 (0)