màj pour version initialeV2
This commit is contained in:
8
pom.xml
8
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.mycompany</groupId>
|
<groupId>com.mycompany</groupId>
|
||||||
<artifactId>bibliotheque</artifactId>
|
<artifactId>GestionBibliotheque</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
<version>4.13.2</version>
|
<version>4.13.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- Configuration du build -->
|
<!-- Configuration du build -->
|
||||||
@@ -28,9 +29,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>3.1.2</version>
|
<version>2.22.2</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<name>GestionBibliotheque</name>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -13,19 +13,14 @@ import static org.junit.Assert.*;
|
|||||||
* @author dthev
|
* @author dthev
|
||||||
*/
|
*/
|
||||||
public class LivreTest {
|
public class LivreTest {
|
||||||
public LivreTest() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Before
|
|
||||||
public void setUp() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreationLivre() {
|
public void testCreationLivre() {
|
||||||
Livre b = new Livre("1984", "George Orwell", "1234567890123", false);
|
Livre b = new Livre("1984", "George Orwell", "1234567890123", false);
|
||||||
assertEquals("1984", b.getTitre());
|
|
||||||
assertEquals("George Orwell", b.getAuteur());
|
|
||||||
assertEquals("1234567890123", b.getIsbn());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
assertNotNull(b);
|
||||||
|
assertEquals("1984", b.getTitre());
|
||||||
|
assertEquals("George Orwell", b.getAuteur()); // corrigé
|
||||||
|
assertEquals("1234567890123", b.getIsbn());
|
||||||
|
assertFalse(b.isEmprunte()); // si la méthode existe
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user