public class InternetDummy extends Object
| Constructor and Description |
|---|
InternetDummy(Dummy4j dummy4j) |
| Modifier and Type | Method and Description |
|---|---|
String |
email()
Provides a random email
|
EmailBuilder |
emailBuilder()
Provides a builder for random emails generated according to customisable parameters
|
String |
password()
Provides a random password
|
PasswordBuilder |
passwordBuilder()
Provides a builder for random passwords generated according to customisable parameters
|
URL |
url()
Returns a URL instance
|
UrlBuilder |
urlBuilder()
Provides a builder for random urls generated according to customisable parameters
|
public InternetDummy(Dummy4j dummy4j)
public URL url()
UrlCouldNotBeCreatedException - if the url can't be createdURLpublic UrlBuilder urlBuilder()
E.g. urlBuilder().withPort(80).withQueryParams().minLength(70).build()
public String password()
public PasswordBuilder passwordBuilder()
E.g. passwordBuilder().withDigits().withUpperCaseChars().withMinLength(15).build()
public String email()
public EmailBuilder emailBuilder()
E.g. emailBuilder().withSubAddresses("custom-tag").safe().build(); may generate an email similar to
zoe.anderson+custom-tag@example.com
Copyright © 2020. All rights reserved.