Class PlaceHolderTextUtil


  • public final class PlaceHolderTextUtil
    extends java.lang.Object
    This class is used to generate placeholder text for the examples and tests. It is not used anywhere in the actual code. This provides a better way than using Lorem Ipsum text as it is more readable.
    • Constructor Detail

      • PlaceHolderTextUtil

        private PlaceHolderTextUtil()
    • Method Detail

      • getPlaceHolderText

        public static java.lang.String getPlaceHolderText​(PlaceHolderTextUtil.PlaceHolderTextBy by,
                                                          int amount)
        Gets the placeholder text.
        Parameters:
        by - if you want to get the placeholder text by words or by characters
        amount - the number of words or characters
        Returns:
        the placeholder text
      • getPlaceHolderTextByWords

        private static java.lang.String getPlaceHolderTextByWords​(int amount)
      • getPlaceHolderTextByCharacters

        private static java.lang.String getPlaceHolderTextByCharacters​(int amount)