Search in sources :

Example 1 with Visibility

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));
}
Also used : Visibility(net.bytebuddy.description.modifier.Visibility) Test(org.junit.Test)

Aggregations

Visibility (net.bytebuddy.description.modifier.Visibility)1 Test (org.junit.Test)1