utils.TestDataGenerator Maven / Gradle / Ivy
package utils;
import java.util.Date;
import java.util.Random;
public class TestDataGenerator {
/**
* Generate a random email for denhaag.nl
*
* @return
*/
public static String emailAdres() {
return String.format("testmijn+%[email protected]", (new Random().nextInt(9999 - 1000) + 1000));
}
/**
* Generate a random 06 telephonenumber
*
* @return
*/
public static String telefoonNummer() {
return String.format("06%d", (new Random().nextInt(99999999 - 10000000) + 10000000));
}
/**
* Generate a random id number
*
* @return
*/
public static String getNewZaakIdentificatie() {
return String.format("testCase%s", new Date().getTime());
}
}