@Test public void testEhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); EhrNumOneDto sut = new EhrNumOneDto(); sut.setPatients(patients); sut.setSelectedPatient(thirdPatient); assertEquals(4, sut.getPatients().length); assertEquals(thirdPatient.getFullName(), sut.getSelectedPatient().getFullName()); }
public EhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); }
EhrNumOneDto { public EhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); } }
EhrNumOneDto { public EhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); } EhrNumOneDto(); }
EhrNumOneDto { public EhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); } EhrNumOneDto(); PatientDto[] getPatients(); void setPatients(PatientDto[] patients); PatientDto getSelectedPatient(); void setSelectedPatient(PatientDto selectedPatient); }
EhrNumOneDto { public EhrNumOneDto() { List<PatientDto> patientList = new ArrayList<PatientDto>(); PatientDto firstPatient= new PatientDto(); firstPatient.setId("PUI100010060001"); firstPatient.setFullName("Asample Patientone"); patientList.add(firstPatient); PatientDto secondPatient= new PatientDto(); secondPatient.setId("PUI100010060007"); secondPatient.setFullName("Asample Patienttwo"); patientList.add(secondPatient); PatientDto thirdPatient= new PatientDto(); thirdPatient.setId("PUI100015060013"); thirdPatient.setFullName("Asample Patientthree"); patientList.add(thirdPatient); PatientDto fourthPatient= new PatientDto(); fourthPatient.setId("PUI100015060014"); fourthPatient.setFullName("Asample Patienfour"); patientList.add(fourthPatient); patients = patientList.toArray(new PatientDto[0]); } EhrNumOneDto(); PatientDto[] getPatients(); void setPatients(PatientDto[] patients); PatientDto getSelectedPatient(); void setSelectedPatient(PatientDto selectedPatient);  }