Class GenericMapGenerator<K,​V>

    • Constructor Detail

      • GenericMapGenerator

        public GenericMapGenerator()
    • Method Detail

      • generate

        public Map<K,​V> generate​(Class<?> clazz,
                                       Field field,
                                       Limiter limiter,
                                       PojoBuilderConfiguration pojoBuilderConfiguration)
        Description copied from interface: Generator
        Generates an instance of this class with random test data
        Specified by:
        generate in interface Generator<K>
        Parameters:
        clazz - class to create
        field - used to determine generic type (i.e. collections)
        limiter - used to limit the randomness of the data
        pojoBuilderConfiguration - The pojo builder configuration used to create objects in case the generator needs to create an object, it can come with user provided generators, providers, etc.
        Returns:
      • supportsType

        public boolean supportsType​(Class<?> clazz)
        Description copied from interface: Generator
        Returns true if this Generator can generate an instance of this class.
        Specified by:
        supportsType in interface Generator<K>
        Parameters:
        clazz - class instance to check
        Returns:
        true if it can create an instance of that class.