private void assertRowCount(String tableName, int rowCount) {
assertEquals(tableName, rowCount, jdbcTemplate.queryForInt("select count(*) from " + tableName));
}
private void assertEventData(String title, String timeZone, String startTime, String endTime, String slug) {
Map<String, Object> externalEventData = jdbcTemplate.queryForObject("select event, sourceId, source from ExternalEvent where sourceId=? and source='NFJS'", new ColumnMapRowMapper(), SHOW_ID);
Long eventId = (Long) externalEventData.get("event");
assertEquals(Long.valueOf(1), eventId);
assertEquals(Long.valueOf(SHOW_ID), externalEventData.get("sourceId"));
assertEquals("NFJS", externalEventData.get("source"));
Map<String, Object> eventData = jdbcTemplate.queryForObject("select id, title, timeZone, startTime, endTime, slug, description, memberGroup from Event where id=?", new ColumnMapRowMapper(), eventId);
assertEquals(eventId, eventData.get("id"));
assertEquals(title, eventData.get("title"));
assertEquals(timeZone, eventData.get("timeZone"));
assertEquals(startTime, eventData.get("startTime").toString());
assertEquals(endTime, eventData.get("endTime").toString());