/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/UnitTests/JUnit4TestClass.java to edit this template */ package com.mycompany.bibliotheque; import com.mycompany.bibliotheque.Metier.Utilisateur; import com.mycompany.bibliotheque.Metier.Livre; import java.util.List; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; /** * * @author dthev */ public class UtilisateurTest { public UtilisateurTest() { } @Before public void setUp() { } /** * Test of getNom method, of class Utilisateur. */ @Test public void testGetNom() { System.out.println("getNom"); Utilisateur instance = null; String expResult = ""; String result = instance.getNom(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getEmprunts method, of class Utilisateur. */ @Test public void testGetEmprunts() { System.out.println("getEmprunts"); Utilisateur instance = null; List expResult = null; List result = instance.getEmprunts(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of emprunterLivre method, of class Utilisateur. */ @Test public void testEmprunterLivre() { System.out.println("emprunterLivre"); Livre livre = null; Utilisateur instance = null; boolean expResult = false; boolean result = instance.emprunterLivre(livre); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } }