@Test public void testIsConsentTermOverlap_false_conendLTselstart() throws ParseException { consentDto.setConsentStart((Date)dateFormat.parse("07/19/2013 00:00:00")); consentDto.setConsentEnd((Date)dateFormat.parse("11/18/2013 22:59:59")); boolean isOverlap = cst.isConsentTermOverlap(consentDto, conStartDate, conEndDate); assertEquals(isOverlap, false); }
public boolean isConsentTermOverlap(ConsentDto consentDto, Date conStartDate, Date conEndDate) { boolean isOverlap = false; Date selStartDate = consentDto.getConsentStart(); Date selEndDate = consentDto.getConsentEnd(); isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate, conEndDate); return isOverlap; }
ConsentHelper { public boolean isConsentTermOverlap(ConsentDto consentDto, Date conStartDate, Date conEndDate) { boolean isOverlap = false; Date selStartDate = consentDto.getConsentStart(); Date selEndDate = consentDto.getConsentEnd(); isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate, conEndDate); return isOverlap; } }
ConsentHelper { public boolean isConsentTermOverlap(ConsentDto consentDto, Date conStartDate, Date conEndDate) { boolean isOverlap = false; Date selStartDate = consentDto.getConsentStart(); Date selEndDate = consentDto.getConsentEnd(); isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate, conEndDate); return isOverlap; }  }
ConsentHelper { public boolean isConsentTermOverlap(ConsentDto consentDto, Date conStartDate, Date conEndDate) { boolean isOverlap = false; Date selStartDate = consentDto.getConsentStart(); Date selEndDate = consentDto.getConsentEnd(); isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate, conEndDate); return isOverlap; }  Date setDateAsEndOfDay(Date consentEnd); boolean isConsentTermOverlap(ConsentDto consentDto,
			Date conStartDate, Date conEndDate); Set<SpecificMedicalInfoDto> getDoNotShareClinicalConceptCodes(
			HashSet<String> icd9); boolean isPOUMatches(Set<String> selPOU,
			Set<ConsentShareForPurposeOfUseCode> conPOU); boolean isProviderComboMatch(Consent consent, ConsentDto consentDto); }
ConsentHelper { public boolean isConsentTermOverlap(ConsentDto consentDto, Date conStartDate, Date conEndDate) { boolean isOverlap = false; Date selStartDate = consentDto.getConsentStart(); Date selEndDate = consentDto.getConsentEnd(); isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate, conEndDate); return isOverlap; }  Date setDateAsEndOfDay(Date consentEnd); boolean isConsentTermOverlap(ConsentDto consentDto,
			Date conStartDate, Date conEndDate); Set<SpecificMedicalInfoDto> getDoNotShareClinicalConceptCodes(
			HashSet<String> icd9); boolean isPOUMatches(Set<String> selPOU,
			Set<ConsentShareForPurposeOfUseCode> conPOU); boolean isProviderComboMatch(Consent consent, ConsentDto consentDto);  }