LetterTemplateDAO extends BaseIbatisDAO { public List<LetterTemplate> queryTemplate(Map<String, Object> parameters) { return (List<LetterTemplate>)super.queryForList("ONLINE_LETTER_TEMPLATE.queryTemplate", parameters); }  Long insertTemplate(LetterTemplate template); int updateTemplate(LetterTemplate template); List<LetterTemplate> queryTemplate(Map<String, Object> parameters); Long countTemplate(Map<String, Object> parameters);  }
@Test public void testQueryTemplate() { Map<String,Object> parameters = new HashMap<String,Object>(); parameters.put("beginTime", new Date()); parameters.put("endTime", new Date()); parameters.put("keywords", "baidu"); List<LetterTemplate> query = letterTemplateDAO.queryTemplate(parameters); Assert.assertNotNull(query.size()); }