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