use of org.apache.beam.vendor.bytebuddy.v1_11_0.net.bytebuddy.description.modifier.Visibility in project byte-buddy by raphw.
the class TypeWriterMethodPoolRecordTest method testAccessorBridgePrependingTakesDelegateVisibility.
@Test
public void testAccessorBridgePrependingTakesDelegateVisibility() throws Exception {
Visibility visibility = Visibility.PUBLIC;
when(delegate.getVisibility()).thenReturn(visibility);
assertThat(new TypeWriter.MethodPool.Record.AccessBridgeWrapper(delegate, instrumentedType, bridgeTarget, Collections.singleton(typeToken), methodAttributeAppender).getVisibility(), is(visibility));
}
Aggregations