Skip to content

Instantly share code, notes, and snippets.

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