Search in sources :

Example 6 with TestBean

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

the class ClassFieldAccessorTest method testNonExistentField.

@Test
public void testNonExistentField() throws Exception {
    final Object[] objArray = new Object[1];
    final TestBean obj = new TestBean();
    obj.setBlah(false);
    obj.setSomething("no");
    obj.setObjArray(objArray);
    ClassFieldReader ext = store.getReader(TestBean.class, "xyz");
    assertNull(ext);
}
Also used : TestBean(org.drools.core.util.asm.TestBean) Test(org.junit.Test)

Aggregations

TestBean (org.drools.core.util.asm.TestBean)6 Test (org.junit.Test)6 ClassFieldReader (org.drools.mvel.accessors.ClassFieldReader)3