@Test public void testInsertPartnership() throws DAOException{ SFRMPartnershipDSDAO dao = super.getTestingTarget(); SFRMPartnershipDVO dvo = (SFRMPartnershipDVO) dao.createDVO(); dvo.setPartnershipSeq(1); dvo.setPartnershipId("dummy_id"); dvo.setDescription("This is the dummy partnership"); dvo.setEncryptAlgorithm("3des"); dvo.setSignAlgorithm("sha1"); dvo.setIsDisabled(false); dvo.setIsHostnameVerified(false); dvo.setSignAlgorithm(null); dvo.setEncryptAlgorithm(null); dvo.setPartnerEndPoint("http: dvo.setRetryInterval(6000); dvo.setRetryMax(3); try{ dao.create(dvo); }catch(DAOException daoe){ Assert.fail("Failure when inserting a new partnership: " + daoe); } Assert.assertEquals("Partnership ID didn't matched", "dummy_id", dvo.getPartnershipId()); }
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();  }