Browse Source

Enable ReflectionUtilsTests.findMethodWithVarArgs()

See gh-13286
pull/28119/head
Sam Brannen 4 years ago
parent
commit
652c13a6ea
  1. 4
      spring-core/src/test/java/org/springframework/util/ReflectionUtilsTests.java

4
spring-core/src/test/java/org/springframework/util/ReflectionUtilsTests.java

@ -24,7 +24,6 @@ import java.rmi.RemoteException; @@ -24,7 +24,6 @@ import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.tests.sample.objects.TestObject;
@ -234,10 +233,9 @@ class ReflectionUtilsTests { @@ -234,10 +233,9 @@ class ReflectionUtilsTests {
assertThat(ReflectionUtils.findMethod(B.class, "getClass")).isNotNull();
}
@Disabled("[SPR-8644] findMethod() does not currently support var-args")
@Test
void findMethodWithVarArgs() {
assertThat(ReflectionUtils.findMethod(B.class, "add", int.class, int.class, int.class)).isNotNull();
assertThat(ReflectionUtils.findMethod(B.class, "add", int[].class)).isNotNull();
}
@Test

Loading…
Cancel
Save