Package de.cuioss.test.generator.domain
Class EmailGenerator
- java.lang.Object
-
- de.cuioss.test.generator.domain.EmailGenerator
-
- All Implemented Interfaces:
TypedGenerator<String>
public class EmailGenerator extends Object implements TypedGenerator<String>
Creates syntactically valid email-addresses- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description EmailGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcreateEmail(String firstname, String lastname)Stringnext()Generates the next instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.cuioss.test.generator.TypedGenerator
getType
-
-
-
-
Constructor Detail
-
EmailGenerator
public EmailGenerator()
-
-
Method Detail
-
next
public String next()
Description copied from interface:TypedGeneratorGenerates the next instance.- Specified by:
nextin interfaceTypedGenerator<String>- Returns:
- a newly created instance
-
createEmail
public static String createEmail(String firstname, String lastname)
- Parameters:
firstname-lastname-- Returns:
- an email address created in the form of firstname.lastname@|email|mail|icw.de|org|com|net
-
-