32 lines
761 B
Java
32 lines
761 B
Java
/*
|
|
* 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.Métier;
|
|
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
import static org.junit.Assert.*;
|
|
|
|
/**
|
|
*
|
|
* @author dthev
|
|
*/
|
|
public class LivreTest {
|
|
public LivreTest() {
|
|
}
|
|
|
|
@Before
|
|
public void setUp() {
|
|
}
|
|
|
|
@Test
|
|
public void testCreationLivre() {
|
|
Livre b = new Livre("1984", "George Orwell", "1234567890123",false);
|
|
assertEquals("1984", b.getTitre());
|
|
assertEquals("George Orwel", b.getAuteur());
|
|
assertEquals("1234567890123", b.getIsbn());
|
|
}
|
|
|
|
}
|