Package 

Class RandomProvider

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> T randomClassInstance() Creates an instance of T.
      final <T extends Any> T randomClassInstance(Function1<RandomProviderConfig, Unit> configurator) Creates an instance of T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • randomClassInstance

         final <T extends Any> T randomClassInstance()

        Creates an instance of T. If T has a parameterless public constructor then it will be used to create an instance of this class, otherwise a constructor with minimal number of parameters will be used with randomly-generated values.

      • randomClassInstance

         final <T extends Any> T randomClassInstance(Function1<RandomProviderConfig, Unit> configurator)

        Creates an instance of T. If T has a parameterless public constructor then it will be used to create an instance of this class, otherwise a constructor with minimal number of parameters will be used with randomly-generated values.

        Parameters:
        configurator - configure instance creation.