Class AttributeMapRandomizer

java.lang.Object
com.mayam.wf.attributes.shared.AttributeMapRandomizer

public class AttributeMapRandomizer extends Object
Utility class which generates valid AttributeMap instances with random data. When used in unit testing, it is recommended that the seed be set to a fixed value using setRandomSeed(long) to make sure tests behave consistently between runs.
Author:
Markus MÃ¥rtensson
  • Constructor Details

    • AttributeMapRandomizer

      @Inject public AttributeMapRandomizer(javax.inject.Provider<AttributeMap> mapProvider)
  • Method Details

    • setRandomSeed

      public void setRandomSeed(long seed)
    • setForceNonNull

      public void setForceNonNull(boolean force)
    • generate

      public AttributeMap generate()