@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")); }
@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); }