String[] names = { "Aaron", "Amily", "Aragon", "Darren", "Darwin" };
batchInsertMultipleFollowersAsFixture(names);
for(String name:names)
{
Follower f = (Follower)jt1m.queryForObject("select * from followers where name=?",new Object[]{name}, new RowMapper(){
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
Follower fl = new Follower();
fl.setId(rs.getLong(1));
fl.setName(rs.getString(2));
return fl;
}});
assertNotNull(f);
int updatedCount = getSqlMapClientTemplate().update("com.alibaba.cobar.client.entities.Follower.update", f);
assertEquals(1, updatedCount);