Ejemplo n.º 1
0
 @Test
 public void testSiClientExiste() {
   List<Client> lesClients = new ArrayList<>();
   lesClients.add(new Client("cancer", "cancer", "cancer"));
   pharmacie.setLesClients(lesClients);
   assertTrue("le Client n'existe pas", pharmacie.siClientExiste("cancer"));
   assertFalse("le Client existe", pharmacie.siClientExiste("cancers"));
 }
Ejemplo n.º 2
0
 @Test
 public void testSetLesClients() {
   List<Client> lesClients = new ArrayList<>();
   lesClients.add(new Client("cancer", "cancer", "cancer"));
   pharmacie.setLesClients(lesClients);
   assertEquals(
       "les Clients n'on pas été mutté adéquatement", pharmacie.getLesClients().size(), 1);
 }