@Test
public void parse_executables_invoke_xml_setArgType() throws Exception
{
config=new ConfigurationParser().parse("org/soybeanMilk/test/unit/core/TestConfigurationParser-main.xml");
Invoke exe=(Invoke)config.getExecutable("global_exe5");
Assert.assertEquals("result", exe.getResultKey());
Resolver rp=exe.getResolver();
Assert.assertEquals(DynamicResolver.class, rp.getClass());
Assert.assertEquals("tr", ((DynamicResolver)rp).getFactoryResolverProvider().getResolverId());
Assert.assertEquals("tr", ((DynamicResolver)rp).getObjectSourceResolverProvider().getResolverKey());
Assert.assertEquals("test2", exe.getMethodName());
Assert.assertEquals(4, exe.getArgs().length);
Assert.assertEquals(KeyArg.class, exe.getArgs()[0].getClass());
Assert.assertEquals("arg0", ((KeyArg)exe.getArgs()[0]).getKey());
Assert.assertEquals(String.class, exe.getArgs()[0].getType());
Assert.assertEquals(KeyArg.class, exe.getArgs()[1].getClass());
Assert.assertEquals("arg1", ((KeyArg)exe.getArgs()[1]).getKey());
Assert.assertEquals(Date.class, exe.getArgs()[1].getType());
Assert.assertEquals(KeyArg.class, exe.getArgs()[2].getClass());
Assert.assertEquals("arg2", ((KeyArg)exe.getArgs()[2]).getKey());
Assert.assertEquals(int.class, exe.getArgs()[2].getType());
Assert.assertEquals(KeyArg.class, exe.getArgs()[3].getClass());
Assert.assertEquals("arg3", ((KeyArg)exe.getArgs()[3]).getKey());
Assert.assertEquals(Integer.class, exe.getArgs()[3].getType());
}