@Test public void testCheckAllFields() throws DAOException{ SFRMPartnershipDSDAO dao = super.getTestingTarget(); SFRMPartnershipDVO dvo = dao.findPartnershipById("test1"); Assert.assertEquals("Partnership ID didn't matched", "test1", dvo.getPartnershipId()); Assert.assertEquals("Sequence No. didn't matched", 8, dvo.getPartnershipSeq()); Assert.assertEquals("Description didn't matched", "This is test 1", dvo.getDescription()); Assert.assertEquals("Partner Endpoint didn't match", "test1/corvus/httpd/sfrm/inbound", dvo.getPartnerEndpoint()); Assert.assertEquals("Orginial Partner Endpoint didn't matched", "test1", dvo.getOrgPartnerEndpoint()); Assert.assertEquals("Certificate Finger Print didn't matched", "0A51EE7101B535ABC9F39414A93C76E7DC768C7B", dvo.getPartnerCertFingerprint()); Assert.assertEquals("Is hostname verified didn't matched", false, dvo.isHostnameVerified()); Assert.assertEquals("Sign Algorithm didn't matched", "sha1", dvo.getSignAlgorithm()); Assert.assertEquals("Encrypt Algorithm didn't matched", "3des", dvo.getEncryptAlgorithm()); Assert.assertEquals("Retry Max didn't matched", 3, dvo.getRetryMax()); Assert.assertEquals("Retry Interval didn't matched", 60000, dvo.getRetryInterval()); Assert.assertEquals("Is Disabled didn't matched", false, dvo.isDisabled()); Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(dvo.getCreationTimestamp().getTime()); Assert.assertEquals("Creation year didn't matched", 2008, cal.get(Calendar.YEAR)); Assert.assertEquals("Creation month didn't matched", 8, cal.get(Calendar.MONTH)); Assert.assertEquals("Creation day didn't matched", 18, cal.get(Calendar.DATE)); Assert.assertEquals("Creation hour didn't matched", 3, cal.get(Calendar.HOUR)); Assert.assertEquals("Creation minute didn't matched", 14, cal.get(Calendar.MINUTE)); Assert.assertEquals("Creation second didn't matched", 35, cal.get(Calendar.SECOND)); Assert.assertEquals("Creation timestamp didn't matched", "2008-09-18 15:14:35.794198", dvo.getCreationTimestamp().toString()); cal.setTimeInMillis(dvo.getModifiedTimestamp().getTime()); Assert.assertEquals("Modified year didn't matched", 2008, cal.get(Calendar.YEAR)); Assert.assertEquals("Modified month didn't matched", 8, cal.get(Calendar.MONTH)); Assert.assertEquals("Modified day didn't matched", 18, cal.get(Calendar.DATE)); Assert.assertEquals("Modified hour didn't matched", 3, cal.get(Calendar.HOUR)); Assert.assertEquals("Modified minute didn't matched", 14, cal.get(Calendar.MINUTE)); Assert.assertEquals("Modified second didn't matched", 35, cal.get(Calendar.SECOND)); Assert.assertEquals("Modified timestamp didn't matched", "2008-09-18 15:14:35.794198", dvo.getModifiedTimestamp().toString()); }
public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } SFRMPartnershipDSDAO(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } 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 SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } SFRMPartnershipDSDAO(); DVO createDVO(); SFRMPartnershipDVO findPartnershipBySeq(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipBySeq(int partnershipId); SFRMPartnershipDVO findPartnershipById(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipById(String partnershipId); List findAllPartnerships();  }