Revert "Introduce ProxyHints.registerJdkProxy(String...)"

This reverses commit b560c10d4c.

See gh-28781
This commit is contained in:
Sam Brannen
2022-07-11 17:09:27 +02:00
parent 49dfcad447
commit d8003e326d
3 changed files with 2 additions and 42 deletions

View File

@@ -32,7 +32,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
* Tests for {@link ProxyHints}.
*
* @author Stephane Nicoll
* @author Sam Brannen
*/
class ProxyHintsTests {
@@ -53,17 +52,10 @@ class ProxyHintsTests {
@Test
void registerJdkProxyWithInterfaceClassNames() {
this.proxyHints.registerJdkProxy(Function.class.getName(), "com.example.Advised");
assertThat(this.proxyHints.jdkProxies()).singleElement()
.satisfies(proxiedInterfaces(Function.class.getName(), "com.example.Advised"));
}
@Test
void registerJdkProxyWithTypeReferences() {
this.proxyHints.registerJdkProxy(TypeReference.of(Function.class),
TypeReference.of("com.example.Advised"));
assertThat(this.proxyHints.jdkProxies()).singleElement()
.satisfies(proxiedInterfaces(Function.class.getName(), "com.example.Advised"));
assertThat(this.proxyHints.jdkProxies()).singleElement().satisfies(proxiedInterfaces(
Function.class.getName(), "com.example.Advised"));
}
@Test