java.lang.Object
org.identityconnectors.contract.data.groovy.Lazy
Direct Known Subclasses:
Get, Random

public abstract class Lazy extends Object

Support for lazy evaluation. "Lazy evaluation" means that property value is evaluated just when get(String) query is called in GroovyDataProvider.

Methods get(Object), random(Object) and random(Object, Class) are ones used in contract tests' configuration.

More detailed information is on web

invalid @link
{@link https://identityconnectors.dev.java.net/contract-tests-groovy/index.html
}

Author:
Zdenek Louzensky
  • Field Details

  • Constructor Details

    • Lazy

      public Lazy()
  • Method Details

    • plus

      public Lazy plus(String s)

      overriding plus operation to be able to concatenate Lazy objects to others.

      (not intented for programmer use)

      Parameters:
      s -
      Returns:
    • plus

      public Lazy plus(Lazy lazy)
      See Also:
    • get

      public static Lazy get(Object prop)
      retrieve value of another property dynamically
      Parameters:
      prop - property name
      Returns:
      property value
    • random

      public static Lazy random(Object pattern)
      See Also:
    • random

      public static Lazy random(Object pattern, Class<?> clazz)
      generate a random object based on given pattern. Object's constructor will be initialized with the string generated by pattern.
      Parameters:
      pattern -
      clazz -
      Returns:
    • getSuccessors

      public List<Object> getSuccessors()
    • setSuccessors

      public void setSuccessors(List<Object> successors)
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)