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);
}
Aggregations