Package com.hybris.cockpitng.util
Class YTestTools
- java.lang.Object
-
- com.hybris.cockpitng.util.YTestTools
-
public final class YTestTools extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetYTestId(org.zkoss.zk.ui.Component comp)static voidmodifyYTestId(org.zkoss.zk.ui.Component component, java.lang.String ytestit)The method sets (changes or adds) ytestid of the given value.static java.lang.StringreplaceUUIDIllegalChars(java.lang.String ytestId)Replaces all illegal characters withILLEGAL_UUID_CHAR_REPLACEMENT.
-
-
-
Method Detail
-
modifyYTestId
public static void modifyYTestId(org.zkoss.zk.ui.Component component, java.lang.String ytestit)The method sets (changes or adds) ytestid of the given value.- Parameters:
component- component on which the ytestid attribute will be setytestit- the value of the id
-
getYTestId
public static java.lang.String getYTestId(org.zkoss.zk.ui.Component comp)
-
replaceUUIDIllegalChars
public static java.lang.String replaceUUIDIllegalChars(java.lang.String ytestId)
Replaces all illegal characters withILLEGAL_UUID_CHAR_REPLACEMENT. UUID can only have alphanumeric characters or underscore.- Parameters:
ytestId-- Returns:
-
-