@Test public void testInsertSoftWare() { Software software = new Software(); software.setName("eMail_sender"); software.setState("1"); software.setVersion("1.0.0-SNAPSHOT"); software.setCheckSum("checkSum"); int result = 0; try { result = softwareDao.insertSoftware(software); } catch (DuplicateKeyException e) { e.printStackTrace(); } catch (DataAccessException e) { e.printStackTrace(); } Assert.assertEquals(1, result); }
public int insertSoftware(Software software) throws DataAccessException { return getSqlSession().insert(STMT_INSERT_SOFTWARE, software); }
SoftwareDao extends MyBatisDao { public int insertSoftware(Software software) throws DataAccessException { return getSqlSession().insert(STMT_INSERT_SOFTWARE, software); } }
SoftwareDao extends MyBatisDao { public int insertSoftware(Software software) throws DataAccessException { return getSqlSession().insert(STMT_INSERT_SOFTWARE, software); }  }
SoftwareDao extends MyBatisDao { public int insertSoftware(Software software) throws DataAccessException { return getSqlSession().insert(STMT_INSERT_SOFTWARE, software); }  Software querySoftware(String softwareName); int insertSoftware(Software software); }
SoftwareDao extends MyBatisDao { public int insertSoftware(Software software) throws DataAccessException { return getSqlSession().insert(STMT_INSERT_SOFTWARE, software); }  Software querySoftware(String softwareName); int insertSoftware(Software software);  }