Search in sources :

Example 1 with OverloadedClass

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

the class CoreConfidenceTests method testMethodOverloadMatch.

public void testMethodOverloadMatch() throws Exception {
    OverloadedClass c = new OverloadedClass();
    Method found = ParseTools.getExactMatch("putXX", new Class[] { int.class, String.class }, void.class, OverloadedInterface.class);
    Method correct = OverloadedInterface.class.getMethod("putXX", new Class[] { int.class, String.class });
    assertEquals(correct, found);
}
Also used : Method(java.lang.reflect.Method) OverloadedClass(org.mvel2.tests.core.res.res2.OverloadedClass)

Aggregations

Method (java.lang.reflect.Method)1 OverloadedClass (org.mvel2.tests.core.res.res2.OverloadedClass)1