use of 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