Skip to content

Instantly share code, notes, and snippets.

@wmbest2
Created December 12, 2010 19:31
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 wmbest2/738258 to your computer and use it in GitHub Desktop.
Save wmbest2/738258 to your computer and use it in GitHub Desktop.
private ArrayList<Listing> createListings() {
ArrayList<Listing> result = new ArrayList<Listing>();
Listing listing = new Listing();
listing.setChannelNumber("1");
listing.setFullTitle("TMZ");
listing.setCategory("news");
listing.setStartTime(11111);
listing.setEndTime(10101);
listing.setDuration("1800");
listing.setLongDescription("This is a long description for the first test Listing");
listing.setTvRating("TVPG");
result.add(listing);
listing.setChannelNumber("2");
listing.setFullTitle("Simpsons");
listing.setCategory("comedy");
listing.setStartTime(22222);
listing.setEndTime(20202);
listing.setDuration("3600");
listing.setLongDescription("This is a long description for the second test Listing");
listing.setTvRating("Y");
result.add(listing);
listing.setChannelNumber("3");
listing.setFullTitle("Family Guy");
listing.setCategory("cartoon");
listing.setStartTime(33333);
listing.setEndTime(30303);
listing.setDuration("5400");
listing.setLongDescription("This is a long description for the 3rd test Listing");
listing.setTvRating("TV Mature");
result.add(listing);
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment