Skip to content

Instantly share code, notes, and snippets.

@FriendlyTester
Created June 23, 2015 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FriendlyTester/af61c7a78a1fb4c971f5 to your computer and use it in GitHub Desktop.
Save FriendlyTester/af61c7a78a1fb4c971f5 to your computer and use it in GitHub Desktop.
A persona builder example
public class UserBuilder
{
public User buildGenericUser()
{
User user = new User();
user.setFirstName("Richard");
user.setSurname("Bradshaw");
user.setAge(29);
user.setEmailAddress("richard@richard.com");
return user;
}
public User buildOAPUser()
{
User user = new User();
user.setFirstName("John");
user.setSurname("Smith");
user.setAge(66);
user.setEmailAddress("john@smith.com");
return user;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment