Search in sources :

Example 1 with TestInterface

use of org.drools.core.util.asm.TestInterface 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));
}
Also used : TestInterfaceImpl(org.drools.core.util.asm.TestInterfaceImpl) TestInterface(org.drools.core.util.asm.TestInterface) Test(org.junit.Test)

Aggregations

TestInterface (org.drools.core.util.asm.TestInterface)1 TestInterfaceImpl (org.drools.core.util.asm.TestInterfaceImpl)1 Test (org.junit.Test)1