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 Details

  • Method Details

    • next

      public String next()
      Description copied from interface: TypedGenerator
      Generates the next instance.
      Specified by:
      next in interface TypedGenerator<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