List of usage examples for org.objectweb.asm Opcodes ACC_INTERFACE
int ACC_INTERFACE
To view the source code for org.objectweb.asm Opcodes ACC_INTERFACE.
Click Source Link
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test(expected = UnsupportedOperationException.class) public void testEmptyInterface7StoreInstance() { IProbeArrayStrategy strategy = test(Opcodes.V1_7, Opcodes.ACC_INTERFACE, false, false, false); strategy.storeInstance(null, false, 0); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void testInterface8() { cv.isInterface = true;/*from w w w. j av a 2 s .co m*/ final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, false, true, true); assertEquals(InterfaceFieldProbeArrayStrategy.class, strategy.getClass()); assertDataField(InstrSupport.DATAFIELD_INTF_ACC); assertInitAndClinitMethods(); strategy.storeInstance(cv.visitMethod(0, null, null, null, null), false, 0); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void testEmptyInterface8() { final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, false, false, false); assertEquals(NoneProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();/*from w ww .j a v a 2 s .co m*/ assertNoInitMethod(); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test(expected = UnsupportedOperationException.class) public void testEmptyInterface8StoreInstance() { final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, false, false, false); strategy.storeInstance(null, false, 0); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void testClinitAndAbstractMethodsInterface8() { final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, true, false, true); assertEquals(LocalProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();/*w w w . ja va 2 s. c om*/ assertNoInitMethod(); strategy.storeInstance(cv.visitMethod(0, null, null, null, null), false, 0); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void testClinitInterface8() { final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, true, false, false); assertEquals(LocalProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();/* ww w . j a v a 2 s . c o m*/ assertNoInitMethod(); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void testClinitAndMethodsInterface8() { cv.isInterface = true;/*from w ww .j a v a 2 s. com*/ final IProbeArrayStrategy strategy = test(Opcodes.V1_8, Opcodes.ACC_INTERFACE, true, true, true); assertEquals(InterfaceFieldProbeArrayStrategy.class, strategy.getClass()); assertDataField(InstrSupport.DATAFIELD_INTF_ACC); assertInitAndClinitMethods(); strategy.storeInstance(cv.visitMethod(0, "<clinit>", null, null, null), true, 0); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void test_java11_interface_with_clinit_and_methods() { final IProbeArrayStrategy strategy = test(Opcodes.V11, Opcodes.ACC_INTERFACE, true, true, true); assertEquals(CondyProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();//from www . j a v a2 s . co m assertCondyBootstrapMethod(); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void test_java11_interface_with_clinit() { final IProbeArrayStrategy strategy = test(Opcodes.V11, Opcodes.ACC_INTERFACE, true, false, true); assertEquals(LocalProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();// w ww . j a v a2s. c o m assertNoInitMethod(); }
From source file:org.jacoco.core.internal.instr.ProbeArrayStrategyFactoryTest.java
License:Open Source License
@Test public void test_java11_interface_without_code() { final IProbeArrayStrategy strategy = test(Opcodes.V11, Opcodes.ACC_INTERFACE, false, false, true); assertEquals(NoneProbeArrayStrategy.class, strategy.getClass()); assertNoDataField();/* ww w . j a v a 2s. co m*/ assertNoInitMethod(); }