@Test public void testInsertPartnershipNeg() throws DAOException{ SFRMPartnershipDSDAO dao = super.getTestingTarget(); SFRMPartnershipDVO dvo = (SFRMPartnershipDVO) dao.createDVO(); dvo.setPartnershipSeq(1); dvo.setDescription("This is the dummy partnership"); dvo.setEncryptAlgorithm("3des"); dvo.setSignAlgorithm("sha1"); dvo.setIsDisabled(false); dvo.setIsHostnameVerified(false); dvo.setPartnerEndPoint("http: dvo.setRetryInterval(6000); dvo.setRetryMax(3); boolean isValid = true; try{ dao.create(dvo); }catch(DAOException daoe){ isValid = false; } Assert.assertFalse("No exception throws when inserting a partnership with invalid data", isValid); SFRMPartnershipDVO new_dvo = (SFRMPartnershipDVO) dao.createDVO(); new_dvo.setDescription("This is the dummy partnership"); Assert.assertFalse("Invalid partnership was inserted to the database", dao.retrieve(new_dvo)); }
public DVO createDVO() { return new SFRMPartnershipDSDVO(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public DVO createDVO() { return new SFRMPartnershipDSDVO(); } }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public DVO createDVO() { return new SFRMPartnershipDSDVO(); } SFRMPartnershipDSDAO(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public DVO createDVO() { return new SFRMPartnershipDSDVO(); } SFRMPartnershipDSDAO(); DVO createDVO(); SFRMPartnershipDVO findPartnershipBySeq(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipBySeq(int partnershipId); SFRMPartnershipDVO findPartnershipById(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipById(String partnershipId); List findAllPartnerships(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public DVO createDVO() { return new SFRMPartnershipDSDVO(); } SFRMPartnershipDSDAO(); DVO createDVO(); SFRMPartnershipDVO findPartnershipBySeq(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipBySeq(int partnershipId); SFRMPartnershipDVO findPartnershipById(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipById(String partnershipId); List findAllPartnerships();  }