Search in sources :

Example 6 with TypeDefinition

use of net.bytebuddy.description.type.TypeDefinition in project byte-buddy by raphw.

the class DuplicationOtherTest method testSingleToZeroFlip.

@Test(expected = IllegalArgumentException.class)
public void testSingleToZeroFlip() throws Exception {
    TypeDefinition typeDefinition = mock(TypeDefinition.class);
    when(typeDefinition.getStackSize()).thenReturn(StackSize.ZERO);
    Duplication.SINGLE.flipOver(typeDefinition);
}
Also used : TypeDefinition(net.bytebuddy.description.type.TypeDefinition) Test(org.junit.Test)

Aggregations

TypeDefinition (net.bytebuddy.description.type.TypeDefinition)6 Test (org.junit.Test)4 FieldDescription (net.bytebuddy.description.field.FieldDescription)3 ArrayList (java.util.ArrayList)2 Collection (java.util.Collection)1 Map (java.util.Map)1 MethodDescription (net.bytebuddy.description.method.MethodDescription)1