Package de.cuioss.test.jsf.component
Class ComponentTestHelper
- java.lang.Object
-
- de.cuioss.test.jsf.component.ComponentTestHelper
-
public final class ComponentTestHelper extends Object
Helper class providing utility methods for convenient filtering of properties.- Author:
- Oliver Wolff
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<ComponentPropertyMetadata>filterPropertyMetadata(Class<?> annotated, UIComponent instance)Filters the given metadata according to the annotationsVerifyComponentPropertiesfound on the given annotated typestatic de.cuioss.test.valueobjects.property.PropertyMetadataresolvePropertyForConfiguredName(UIComponent instance, String configuredName)Creates aPropertyMetadatafor the given propertyName on the given type.
-
-
-
Method Detail
-
filterPropertyMetadata
public static List<ComponentPropertyMetadata> filterPropertyMetadata(Class<?> annotated, UIComponent instance)
Filters the given metadata according to the annotationsVerifyComponentPropertiesfound on the given annotated type- Parameters:
annotated- must not be nullinstance- of the type to be checked.- Returns:
- the filtered list with
ComponentPropertyMetadata
-
resolvePropertyForConfiguredName
public static de.cuioss.test.valueobjects.property.PropertyMetadata resolvePropertyForConfiguredName(UIComponent instance, String configuredName)
Creates aPropertyMetadatafor the given propertyName on the given type.- Parameters:
instance- must not be nullconfiguredName- must not be null- Returns:
PropertyMetadatainstance with the corresponding attributes.
-
-