public void updateEventData() {
long eventId = eventLoaderRepository.loadEvent(
new EventData(1, "Test Event", "Test Event Description", "test", "2012-10-15T00:00:00", "2012-10-18T23:59:59", "America/New_York", "NFJS", 297),
new VenueData("Some Fancy Hotel", "1234 North Street, Chicago, IL 60605", 41.89001, -87.677765, "It's in Illinois"));
assertEquals(1L, eventId);
Event event = eventRepository.findEventBySlug("s2gx", 2012, 10, "test");
assertEquals("Test Event", event.getTitle());
Set<Venue> venues = event.getVenues();
assertEquals(1, venues.size());
Venue venue = new ArrayList<Venue>(venues).get(0);
assertEquals("Some Fancy Hotel", venue.getName());
long updatedEventId = eventLoaderRepository.loadEvent(
new EventData(1, "Updated Event", "Test Event Description", "test", "2012-10-15T00:00:00", "2012-10-18T23:59:59", "America/New_York", "NFJS", 297),
new VenueData("Some Conference Hall", "1234 North Street, Chicago, IL 60605", 41.89001, -87.677765, "It's in Illinois"));
assertEquals(1L, updatedEventId);
Event updatedEvent = eventRepository.findEventBySlug("s2gx", 2012, 10, "test");
assertEquals("Updated Event", updatedEvent.getTitle());
Set<Venue> updatedVenues = updatedEvent.getVenues();
assertEquals(1, updatedVenues.size());
Venue updatedVenue = new ArrayList<Venue>(updatedVenues).get(0);
assertEquals("Some Conference Hall", updatedVenue.getName());
}