Search in sources :

Example 1 with MyInterface

use of org.mvel2.tests.core.res.MyInterface in project mvel by mvel.

the class CoreConfidenceTests method testEnumSupport.

public void testEnumSupport() {
    MyInterface myInterface = new MyClass();
    myInterface.setType(MyInterface.MY_ENUM.TWO, true);
    boolean isType = MVEL.eval("isType(org.mvel2.tests.core.res.MyInterface$MY_ENUM.ONE)", myInterface, Boolean.class);
    System.out.println(isType);
}
Also used : MyClass(org.mvel2.tests.core.res.MyClass) MyInterface(org.mvel2.tests.core.res.MyInterface)

Aggregations

MyClass (org.mvel2.tests.core.res.MyClass)1 MyInterface (org.mvel2.tests.core.res.MyInterface)1