@Then("^the examination details length, weight and last examination date are given$") public void the_examination_details_length_weight_and_last_examination_date_are_given() throws Throwable { ExaminationDetail examinationDetails = service.getPerson(this.socialSecurityNumber).getExaminationDetail(); assertEquals(this.length, examinationDetails.getLength()); assertEquals(this.weight, examinationDetails.getWeight()); assertTrue( differNoMoreThanFewSeconds(this.examinationDate, examinationDetails.getExaminationDate())); }
@When("^I ask for the details of the patient using his social security number$") public void i_ask_for_the_details_of_the_patient_using_his_social_security_number() throws Throwable { detailsRetrieved = service.getPerson(this.socialSecurityNumber); }
@Given("^the patient is registered$") public void the_patient_is_registered() throws Throwable { service.addPerson(patient); }