Search in sources :

Example 1 with ConcreteChild

use of org.drools.core.base.ConcreteChild in project drools by kiegroup.

the class ClassFieldAccessorTest method testMultipleInterfaces.

@Test
public void testMultipleInterfaces() throws Exception {
    final ConcreteChild obj = new ConcreteChild();
    final ClassFieldReader ext = store.getReader(InterfaceChild.class, "foo");
    assertEquals(42, ((Number) ext.getValue(null, obj)).intValue());
}
Also used : ClassFieldReader(org.drools.mvel.accessors.ClassFieldReader) ConcreteChild(org.drools.core.base.ConcreteChild) Test(org.junit.Test)

Aggregations

ConcreteChild (org.drools.core.base.ConcreteChild)1 ClassFieldReader (org.drools.mvel.accessors.ClassFieldReader)1 Test (org.junit.Test)1