Created
June 23, 2015 22:01
-
-
Save FriendlyTester/36162787eb723e422824 to your computer and use it in GitHub Desktop.
A simple builder method
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("[email protected]"); | |
return user; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment