new KeyArg("arg", Double.class),
};
Resolver rp=new ObjectResolver(new TestResolver());
Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
os.set("arg", "33");
invoke.execute(os);
Assert.assertEquals("Double", os.get(RESULT_KEY));
}
{
Arg[] args=new Arg[]{
new KeyArg("arg", Integer.class),
};
Resolver rp=new ObjectResolver(new TestResolver());
Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
os.set("arg", "33");
invoke.execute(os);
Assert.assertEquals("Integer", os.get(RESULT_KEY));
}
}