use of org.drools.core.util.asm.TestAbstractImpl in project drools by kiegroup.
the class BaseClassFieldAccessorFactoryTest method testAbstract.
@Test
public void testAbstract() throws Exception {
final InternalReadAccessor ex = store.getReader(TestAbstract.class, "something");
assertEquals(2, ex.getIndex());
assertEquals("foo", ex.getValue(null, new TestAbstractImpl()));
}
use of org.drools.core.util.asm.TestAbstractImpl in project drools by kiegroup.
the class ClassFieldAccessorTest method testAbstract.
@Test
public void testAbstract() throws Exception {
final ClassFieldReader ext = store.getReader(TestAbstract.class, "something");
final TestAbstract obj = new TestAbstractImpl();
assertEquals("foo", (String) ext.getValue(null, obj));
}
Aggregations