Package de.cuioss.test.jsf.renderer
Enum CommonRendererAsserts
- java.lang.Object
-
- java.lang.Enum<CommonRendererAsserts>
-
- de.cuioss.test.jsf.renderer.CommonRendererAsserts
-
- All Implemented Interfaces:
RendererAttributeAssert,Serializable,Comparable<CommonRendererAsserts>
public enum CommonRendererAsserts extends Enum<CommonRendererAsserts> implements RendererAttributeAssert
This enum define the commonly used attributes to be tested.- Author:
- Oliver Wolff
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IDChecks the attribute 'id', seeUIComponent.getId()PASSTHROUGHChecks the passthrough-attributes.RENDEREDChecks the attribute 'rendered', seeUIComponent.isRendered().STYLEChecks the attribute 'style'STYLE_CLASSChecks the attribute 'style'
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyAttribute(UIComponent component)Sets the attribute to be tested into the given componentvoidassertAttributeSet(org.jdom2.Element element)Asserts in the given render-result that the attribute was set properlyStringgetAttributeName()SerializablegetAttributeTraceValue()static CommonRendererAssertsvalueOf(String name)Returns the enum constant of this type with the specified name.static CommonRendererAsserts[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final CommonRendererAsserts ID
Checks the attribute 'id', seeUIComponent.getId()
-
RENDERED
public static final CommonRendererAsserts RENDERED
Checks the attribute 'rendered', seeUIComponent.isRendered(). Due to its nature this test must not work all the time correctly and should therefore considered as candidate for vetoing. The actual assert checks whether the given component isnullor does not contain any children.
-
STYLE
public static final CommonRendererAsserts STYLE
Checks the attribute 'style'
-
STYLE_CLASS
public static final CommonRendererAsserts STYLE_CLASS
Checks the attribute 'style'
-
PASSTHROUGH
public static final CommonRendererAsserts PASSTHROUGH
Checks the passthrough-attributes.
-
-
Method Detail
-
values
public static CommonRendererAsserts[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommonRendererAsserts c : CommonRendererAsserts.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommonRendererAsserts valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
applyAttribute
public void applyAttribute(UIComponent component)
Description copied from interface:RendererAttributeAssertSets the attribute to be tested into the given component- Specified by:
applyAttributein interfaceRendererAttributeAssert- Parameters:
component- where the attribute is to be applied to,
-
assertAttributeSet
public void assertAttributeSet(org.jdom2.Element element)
Description copied from interface:RendererAttributeAssertAsserts in the given render-result that the attribute was set properly- Specified by:
assertAttributeSetin interfaceRendererAttributeAssert- Parameters:
element- to be checked
-
getAttributeName
public String getAttributeName()
- Specified by:
getAttributeNamein interfaceRendererAttributeAssert- Returns:
- the name of the attribute to be checked
-
getAttributeTraceValue
public Serializable getAttributeTraceValue()
-
-