Search in sources :

Example 1 with BeanInherit

use of org.drools.core.util.asm.BeanInherit in project drools by kiegroup.

the class ClassFieldAccessorTest method testInherited.

@Test
public void testInherited() throws Exception {
    final ClassFieldReader ext = store.getReader(BeanInherit.class, "text");
    final BeanInherit obj = new BeanInherit();
    assertEquals("hola", (String) ext.getValue(null, obj));
}
Also used : BeanInherit(org.drools.core.util.asm.BeanInherit) Test(org.junit.Test)

Example 2 with BeanInherit

use of org.drools.core.util.asm.BeanInherit in project drools by kiegroup.

the class BaseClassFieldAccessorFactoryTest method testInherited.

@Test
public void testInherited() throws Exception {
    final InternalReadAccessor ex = store.getReader(BeanInherit.class, "text");
    assertEquals("hola", ex.getValue(null, new BeanInherit()));
}
Also used : InternalReadAccessor(org.drools.core.spi.InternalReadAccessor) BeanInherit(org.drools.core.util.asm.BeanInherit) Test(org.junit.Test)

Aggregations

BeanInherit (org.drools.core.util.asm.BeanInherit)2 Test (org.junit.Test)2 InternalReadAccessor (org.drools.core.spi.InternalReadAccessor)1