IntelliJ IDEA 11 project setup

master
Juergen Hoeller 13 years ago committed by Chris Beams
parent bd6c3becb0
commit 1a3d9a2d3e
  1. 15
      org.springframework.test/src/test/java/org/springframework/test/util/ReflectionTestUtilsTests.java
  2. 2351
      spring-framework.ipr

@ -203,21 +203,24 @@ public class ReflectionTestUtilsTests {
@Test
public void invokeMethodWithAutoboxingAndUnboxing() {
int difference = invokeMethod(component, "subtract", 5, 2);
assertEquals("subtract(5, 2)", 3, difference);
// IntelliJ IDEA 11 won't accept int assignment here
Integer difference = invokeMethod(component, "subtract", 5, 2);
assertEquals("subtract(5, 2)", 3, difference.intValue());
}
@Ignore("[SPR-8644] findMethod() does not currently support var-args")
@Test
public void invokeMethodWithPrimitiveVarArgs() {
int sum = invokeMethod(component, "add", 1, 2, 3, 4);
assertEquals("add(1,2,3,4)", 10, sum);
// IntelliJ IDEA 11 won't accept int assignment here
Integer sum = invokeMethod(component, "add", 1, 2, 3, 4);
assertEquals("add(1,2,3,4)", 10, sum.intValue());
}
@Test
public void invokeMethodWithPrimitiveVarArgsAsSingleArgument() {
int sum = invokeMethod(component, "add", new int[] { 1, 2, 3, 4 });
assertEquals("add(1,2,3,4)", 10, sum);
// IntelliJ IDEA 11 won't accept int assignment here
Integer sum = invokeMethod(component, "add", new int[] { 1, 2, 3, 4 });
assertEquals("add(1,2,3,4)", 10, sum.intValue());
}
@Test

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save