Search in sources :

Example 6 with DynaProperty

use of org.apache.commons.beanutils.DynaProperty in project sonarqube by SonarSource.

the class DynaActionFormConfig method testGetDescriptorBase.

/**
     * Base for testGetDescriptorXxxxx() series of tests.
     *
     * @param name Name of the property to be retrieved
     * @param type Expected class type of this property
     */
protected void testGetDescriptorBase(String name, Class type) {
    DynaProperty descriptor = dynaForm.getDynaClass().getDynaProperty(name);
    assertNotNull("Got descriptor", descriptor);
    assertEquals("Got correct type", type, descriptor.getType());
}
Also used : DynaProperty(org.apache.commons.beanutils.DynaProperty)

Aggregations

DynaProperty (org.apache.commons.beanutils.DynaProperty)6 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Map (java.util.Map)1 ConversionException (org.apache.commons.beanutils.ConversionException)1 DynaClass (org.apache.commons.beanutils.DynaClass)1 FormPropertyConfig (org.apache.struts.config.FormPropertyConfig)1