Class Regex

    • Constructor Detail

      • Regex

        public Regex​(java.lang.String regExp)
    • Method Detail

      • regex

        public static Regex regex​(java.lang.String regex)

        Returns a new Regex object that can be used to generate arbitrary text based on a certain regex pattern.

        Parameters:
        regex - The regex pattern that the generated string needs to comply.
        Returns:
        A new Regex object. The Regex class implements MockUnitString.
      • supplier

        public java.util.function.Supplier<java.lang.String> supplier()
        Description copied from interface: MockUnit
        This is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
        Specified by:
        supplier in interface MockUnit<java.lang.String>
        Returns:
        A Supplier<T>.