màj pour version initialeV2
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user