màj pour version initialeV2

This commit is contained in:
2025-09-24 18:14:21 +02:00
parent 62092bb78b
commit d92fa2649e
12 changed files with 351 additions and 118 deletions

View File

@@ -0,0 +1,69 @@
/*
* 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.Bibliotheque;
import com.mycompany.bibliotheque.Métier.Livre;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author dthev
*/
public class BibliothequeTest {
public BibliothequeTest() {
}
@Before
public void setUp() {
}
/**
* Test of addLivre method, of class Bibliotheque.
*/
@Test
public void testAddLivre() {
System.out.println("addLivre");
Livre b = null;
Bibliotheque instance = new Bibliotheque();
boolean expResult = false;
boolean result = instance.addLivre(b);
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 getLesLivres method, of class Bibliotheque.
*/
@Test
public void testGetLesLivres() {
System.out.println("getLesLivres");
Bibliotheque instance = new Bibliotheque();
List<Livre> expResult = null;
List<Livre> result = instance.getLesLivres();
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 setLesLivres method, of class Bibliotheque.
*/
@Test
public void testSetLesLivres() {
System.out.println("setLesLivres");
List<Livre> lesLivres = null;
Bibliotheque instance = new Bibliotheque();
instance.setLesLivres(lesLivres);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}