Exemplo n.º 1
0
 @Test
 public void testAdmissionUpdate() {
   Admission a =
       new Admission.Builder("Saida")
           .surname("Vutula")
           .age(22)
           .diagnosis("Smoking")
           .weeks(6)
           .build();
   Assert.assertEquals(a.getName(), "Saida");
   Assert.assertEquals(a.getSurname(), "Vutula");
   Assert.assertEquals(a.getAge(), 22);
   Assert.assertEquals(a.getDiagnosis(), "Smoking");
   Assert.assertEquals(a.getFee(), 1170.00);
 }
Exemplo n.º 2
0
 @Test
 public void testAdmission() {
   Admission a =
       new Admission.Builder("Ngcamango")
           .surname("Mayekiso")
           .age(22)
           .diagnosis("Games")
           .weeks(4)
           .build();
   Assert.assertEquals(a.getName(), "Ngcamango");
   Assert.assertEquals(a.getSurname(), "Mayekiso");
   Assert.assertEquals(a.getAge(), 22);
   Assert.assertEquals(a.getDiagnosis(), "Games");
   Assert.assertEquals(a.getFee(), 780.00);
 }