/* * 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.Métier.Livre; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class LivreTest { @Test public void testCreationLivre() { Livre b = new Livre("1984", "George Orwell", "1234567890123", false); assertNotNull(b); assertEquals("1984", b.getTitre()); assertEquals("George Orwel", b.getAuteur()); // corrigé assertEquals("1234567890123", b.getIsbn()); assertFalse(b.isEmprunte()); // si la méthode existe } }