Class 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.String getYTestId​(org.zkoss.zk.ui.Component comp)  
      static void modifyYTestId​(org.zkoss.zk.ui.Component component, java.lang.String ytestit)
      The method sets (changes or adds) ytestid of the given value.
      static java.lang.String replaceUUIDIllegalChars​(java.lang.String ytestId)
      Replaces all illegal characters with ILLEGAL_UUID_CHAR_REPLACEMENT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 set
        ytestit - 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 with ILLEGAL_UUID_CHAR_REPLACEMENT. UUID can only have alphanumeric characters or underscore.
        Parameters:
        ytestId -
        Returns: