public void testParameter_3_0() throws Exception
{
IComponentSpecification spec = parseComponent("Parameter_3_0.jwc");
IParameterSpecification ps = spec.getParameter("noDefault");
assertEquals("noDefault", ps.getPropertyName());
assertEquals("noDefault", ps.getParameterName());
assertEquals(true, ps.isRequired());
assertEquals("bar", ps.getType());
assertNull(ps.getDefaultValue());
assertEquals(false, ps.isDeprecated());
ps = spec.getParameter("withDefault");
assertEquals("withDefault", ps.getParameterName());
assertNull(ps.getType());
assertEquals(false, ps.isRequired());
// For 3.0 DTDs, where the default value was always an OGNL expression,
// the parser will provide the "ognl:" prefix.
assertEquals("ognl:an.expression", ps.getDefaultValue());
ps = spec.getParameter("withDescription");
assertEquals("A parameter with a description.", ps.getDescription());
ps = spec.getParameter("altName");
assertEquals("altNameParameter", ps.getPropertyName());
ps = spec.getParameter("directionIn");
assertEquals(true, ps.getCache());
ps = spec.getParameter("directionAuto");
assertEquals(false, ps.getCache());
}