Skip to content

Instantly share code, notes, and snippets.

@jayanath
Created July 30, 2012 20:08
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 jayanath/3209749 to your computer and use it in GitHub Desktop.
Save jayanath/3209749 to your computer and use it in GitHub Desktop.
Room Bean
@Bean
public Room room() {
Room r = new Room("Monte Carlo");
List<Service> list = new ArrayList<Service>();
list.add(internet());
list.add(telephone());
r.setServiceList(list);
return r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment