Skip to content

Commit

Permalink
also test interface is hidden from reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Nov 20, 2024
1 parent 99cc98a commit a43b667
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ void testInjectedClassProxyUnwrap() throws Exception {
.isNotEqualTo("__getIndyProxyDelegate");
}

for (Class<?> interfaceType : helperType.getInterfaces()) {
assertThat(interfaceType)
.describedAs("indy proxy interface must be hidden from reflection")
.isNotEqualTo(IndyProxy.class);
}

assertThat(instance).isInstanceOf(IndyProxy.class);

Object proxyDelegate = ((IndyProxy) instance).__getIndyProxyDelegate();
Expand Down

0 comments on commit a43b667

Please sign in to comment.