Enable ReflectionUtilsTests.findMethodWithVarArgs()

See gh-13286
This commit is contained in:
Sam Brannen 2022-01-25 09:58:57 +01:00
parent cb3fa89946
commit 652c13a6ea
1 changed files with 1 additions and 3 deletions

View File

@ -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 {
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