Interface ValueGenerator

All Known Implementing Classes:
AbstractValueIncrementor, AnyOfValueGenerator, BeanBuilder, BeanGenerator, ConstantValueGenerator, DefaultValueGenerator, EmptyArrayValueGenerator, FirstEnumValueGenerator, FirstImplBeanGenerator, IntegerValueIncrementor, MockitoBeanGenerator, NoArgBeanGenerator, PropertyValueGenerator, ProxyBeanGenerator, RandomIntegerGenerator, RandomLocalDateGenerator, RandomLocalDateTimeGenerator, RandomLocalTimeGenerator, RandomStringGenerator, ReferencedTypeValueGenerator, SequentialValueGenerator, TypeBasedValueGenerator, UnsupportedValueGenerator, UUIDStringGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValueGenerator
Generates a value.
Author:
Jeroen van Schagen
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(Class<?> type)
    Generate a new value of the specified type.
  • Method Details

    • generate

      Object generate(Class<?> type)
      Generate a new value of the specified type.
      Parameters:
      type - the type of value
      Returns:
      the generation value