Package net.jqwik.web.api
Interface EmailArbitrary
-
- All Superinterfaces:
Arbitrary<java.lang.String>
@API(status=MAINTAINED, since="1.4.0") public interface EmailArbitrary extends Arbitrary<java.lang.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EmailArbitrary
allowIpv4Host()
Allow IPv4 addresses in the host part.EmailArbitrary
allowIpv6Host()
Allow IPv6 addresses in the host part.EmailArbitrary
allowQuotedLocalPart()
Allow the local part of an email to be quoted within " characters.-
Methods inherited from interface net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
-
-
-
Method Detail
-
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
-
-