Skip to main content

Generating fictitious data

It is easy to use the different functions to generate data randomly. Using a tJava component, you can, for example, create a list of fictitious client data using functions such as getFirstName(), getLastName(), getUSCity():

System.out.println(TalendDataGenerator.getFirstName()); 
System.out.println(TalendDataGenerator.getLastName()); 
System.out.println(TalendDataGenerator.getUsCity()); 
System.out.println(TalendDataGenerator.getUsState());
System.out.println(TalendDataGenerator.getUsStateId());
System.out.println(TalendDataGenerator.getUsStreet());

The set of data taken randomly from the list of fictitious data is displayed in the Run view:

The result is a list of strings made of a name, last name, city, state, state ID, and street in the Run view.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!