Created
June 23, 2015 22:05
-
-
Save FriendlyTester/af61c7a78a1fb4c971f5 to your computer and use it in GitHub Desktop.
A persona builder example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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