Package net.jqwik.web.api
Annotation Interface Email
@Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Documented
@API(status=MAINTAINED,
since="1.4.0")
public @interface Email
Constrain generated strings to be valid email addresses. By default, only addresses
with unquoted local part and domain hosts are generated (e.g.
me@myhost.com
),
because many - if not most - applications and web forms only accept those.
Applies to parameters of type String that are also annotated with @ForAll
.
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Are hosts with ipv4 addresses allowed.boolean
Are hosts with ipv6 addresses allowed.boolean
Are quoted local parts allowed.
-
Element Details
-
ipv6Host
boolean ipv6HostAre hosts with ipv6 addresses allowed.- Default:
- false
-
ipv4Host
boolean ipv4HostAre hosts with ipv4 addresses allowed.- Default:
- false
-
quotedLocalPart
boolean quotedLocalPartAre quoted local parts allowed.- Default:
- false
-