All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.web.api.Email Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.web.api;

import java.lang.annotation.*;

import org.apiguardian.api.*;

import static org.apiguardian.api.API.Status.*;

/**
 * Constrain generated strings to be valid email addresses. By default, only addresses
 * with unquoted local part and domain hosts are generated (e.g. {@code [email protected]}),
 * because many - if not most - applications and web forms only accept those.
 *
 * 

* Applies to parameters of type {@linkplain String} that are also annotated with {@code @ForAll}. *

* * @see net.jqwik.api.ForAll * @see EmailArbitrary */ @Target({ ElementType.ANNOTATION_TYPE, ElementType.PARAMETER, ElementType.TYPE_USE }) @Retention(RetentionPolicy.RUNTIME) @Documented @API(status = MAINTAINED, since = "1.4.0") public @interface Email { /** * Are hosts with ipv6 addresses allowed. */ boolean ipv6Host() default false; /** * Are hosts with ipv4 addresses allowed. */ boolean ipv4Host() default false; /** * Are quoted local parts allowed. */ boolean quotedLocalPart() default false; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy