parser.parse("org/soybeanMilk/test/unit/web/TestWebConfigurationParser-0.xml");
WebConfiguration webConfiguration= parser.getWebConfiguration();
{
WebAction ac=(WebAction)webConfiguration.getExecutable("exe0");
Assert.assertNull(ac.getTarget().getUrl());
Assert.assertEquals(Target.FORWARD, ac.getTarget().getType());
}
{
WebAction ac=(WebAction)webConfiguration.getExecutable("exe1");
Assert.assertEquals("url", ac.getTarget().getUrl());
Assert.assertEquals(Target.FORWARD, ac.getTarget().getType());
}
{
WebAction ac=(WebAction)webConfiguration.getExecutable("exe2");
Assert.assertNull(ac.getTarget().getUrl());
Assert.assertEquals("json", ac.getTarget().getType());
}
{
WebAction ac=(WebAction)webConfiguration.getExecutable("exe3");
Assert.assertNull(ac.getTarget().getUrl());
Assert.assertEquals("JSON", ac.getTarget().getType());
}
}