@Test public void testQuerySoftWare() { Software software = null; try { software = softwareDao.querySoftware("A"); } catch (DataAccessException e) { e.printStackTrace(); } Assert.assertNotNull(software); }
public Software querySoftware(String softwareName) throws DataAccessException { return (Software) getSqlSession().selectOne(STMT_QUERY_SOFTWARE_BY_NAME, softwareName); }
SoftwareDao extends MyBatisDao { public Software querySoftware(String softwareName) throws DataAccessException { return (Software) getSqlSession().selectOne(STMT_QUERY_SOFTWARE_BY_NAME, softwareName); } }
SoftwareDao extends MyBatisDao { public Software querySoftware(String softwareName) throws DataAccessException { return (Software) getSqlSession().selectOne(STMT_QUERY_SOFTWARE_BY_NAME, softwareName); }  }
SoftwareDao extends MyBatisDao { public Software querySoftware(String softwareName) throws DataAccessException { return (Software) getSqlSession().selectOne(STMT_QUERY_SOFTWARE_BY_NAME, softwareName); }  Software querySoftware(String softwareName); int insertSoftware(Software software); }
SoftwareDao extends MyBatisDao { public Software querySoftware(String softwareName) throws DataAccessException { return (Software) getSqlSession().selectOne(STMT_QUERY_SOFTWARE_BY_NAME, softwareName); }  Software querySoftware(String softwareName); int insertSoftware(Software software);  }