Collections.sort(lst, comparator);
verifyOffersOrderBySubject(lst);
}
private void batchInsertOffersAsFixture() {
BatchInsertTask task = new BatchInsertTask();
List<Offer> offers = new ArrayList<Offer>();
Offer offer = new Offer();
offer.setMemberId(1L);
offer.setSubject("Z");
offer.setGmtUpdated(new Date());
offers.add(offer);
offer = new Offer();
offer.setMemberId(1L);
offer.setSubject("X");
offer.setGmtUpdated(new Date());
offers.add(offer);
offer = new Offer();
offer.setMemberId(1L);
offer.setSubject("S");
offer.setGmtUpdated(new Date());
offers.add(offer);
offer = new Offer();
offer.setMemberId(2L);
offer.setSubject("D");
offer.setGmtUpdated(new Date());
offers.add(offer);
offer = new Offer();
offer.setMemberId(2L);
offer.setSubject("A");
offer.setGmtUpdated(new Date());
offers.add(offer);
task.setEntities(offers);
getSqlMapClientTemplate().insert("com.alibaba.cobar.client.entities.Offer.batchInsert",
task);
}