Class ArbitraryConfiguratorBase

    • Constructor Detail

      • ArbitraryConfiguratorBase

        public ArbitraryConfiguratorBase()
    • Method Detail

      • configure

        public <T> Arbitrary<T> configure​(Arbitrary<T> arbitrary,
                                          TypeUsage targetType)
        Description copied from interface: ArbitraryConfigurator
        Configure a given arbitrary and return the configured instance.
        Specified by:
        configure in interface ArbitraryConfigurator
        Parameters:
        arbitrary - The arbitrary instance to be configured
        targetType - The type of the object to be generated by the arbitrary
        Returns:
        the newly configured arbitrary instance
      • acceptTargetType

        protected boolean acceptTargetType​(TypeUsage targetType)
        Override if configurator only works for certain types of domain objects
        Parameters:
        targetType - The concrete domain type to be generated