assertEquals(locationHint, venueData.get("locationHint"));
assertEquals(createdBy, venueData.get("createdBy"));
}
private void assertLeaderData(String name, String bio, String personalUrl, String twitterUsername) {
Map<String, Object> externalLeaderData = jdbcTemplate.queryForObject("select leader, sourceId, source from ExternalLeader where source='NFJS' and sourceId=?", new ColumnMapRowMapper(), 38);
Long leaderId = (Long) externalLeaderData.get("leader");
assertEquals(Long.valueOf(15), leaderId);
assertEquals(38L, externalLeaderData.get("sourceId"));
assertEquals("NFJS", externalLeaderData.get("source"));
Map<String, Object> leaderData = jdbcTemplate.queryForObject("select id, name, company, title, location, bio, personalUrl, companyUrl, twitterUsername, member from Leader where id=?", new ColumnMapRowMapper(), leaderId);
assertEquals(leaderId, leaderData.get("id"));
assertEquals(name, leaderData.get("name"));
assertNull(leaderData.get("company"));
assertNull(leaderData.get("title"));
assertNull(leaderData.get("location"));