Interface EmailArbitrary

All Superinterfaces:
Arbitrary<String>

@API(status=MAINTAINED, since="1.4.0") public interface EmailArbitrary extends Arbitrary<String>
Fluent interface to configure arbitraries that generate valid email addresses.

By default only standard emails of the form username@domain.tld are generated. Other options like quoted local parts and ip addresses as host can be switched on.

  • Method Details

    • allowQuotedLocalPart

      EmailArbitrary allowQuotedLocalPart()
      Allow the local part of an email to be quoted within " characters.
      Returns:
      new instance of arbitrary
    • allowIpv4Host

      EmailArbitrary allowIpv4Host()
      Allow IPv4 addresses in the host part.
      Returns:
      new instance of arbitrary
    • allowIpv6Host

      EmailArbitrary allowIpv6Host()
      Allow IPv6 addresses in the host part.
      Returns:
      new instance of arbitrary