コード例 #1
0
 @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()));
 }
コード例 #2
0
 @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);
 }
コード例 #3
0
 @Given("^the patient is registered$")
 public void the_patient_is_registered() throws Throwable {
   service.addPerson(patient);
 }