java.lang.Object
org.identityconnectors.contract.data.groovy.Lazy
org.identityconnectors.contract.data.groovy.Random

public class Random extends Lazy

Generate random strings based on given pattern

This is a Helper class, users of tests will access methods: Lazy.random(Object) and Lazy.get(Object))

Author:
Zdenek Louzensky
  • Constructor Details

    • Random

      protected Random(Object pattern)
      Creates a random string based on given pattern.
      Parameters:
      pattern - format of pattern
    • Random

      protected Random(Object pattern, Class<?> clazz)
      Creates a random object of given type
      Parameters:
      pattern -
      clazz - the class that will be the type of generated object
  • Method Details

    • generate

      public Object generate()
      create a random value, that is created once. However further queries will return the same random value.
    • getClazz

      public Class<?> getClazz()
      Returns:
      the type of generated random class