### Question:
PublicStrategyDao extends BaseDao { public Long getCountByName(String name) throws SQLException { return this.getCount("SELECT count(1) FROM public_strategy WHERE name='" + name + "'"); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging);  }### Answer:
@Test public void getCountByName() throws Exception { Long count = publicStrategyDao.getCountByName("publicStrategy"); System.out.println("getCountByName :-------> " + count); Assert.assertTrue(count > 0); }