Merge pull request 'màj LivreValidTest.java' (#3) from Prof into developpement

Reviewed-on: #3
This commit is contained in:
2025-09-26 08:58:04 +02:00

View File

@@ -24,6 +24,7 @@ public class LivreValideTest {
/**
* Test of isValidIsbn method, of class LivreValide.
* @author Emile
*/
@Test
public void testIsValidIsbn() {
@@ -38,6 +39,7 @@ public class LivreValideTest {
/**
* Test of isValidTitre method, of class LivreValide.
* @author Salomé/Emile
*/
@Test
public void testIsValidTitre() {
@@ -52,6 +54,7 @@ public class LivreValideTest {
/**
* Test of isValidAuteur method, of class LivreValide.
* @author Medhi/Steve
*/
@Test
public void testIsValidAuteur() {
@@ -66,6 +69,7 @@ public class LivreValideTest {
/**
* Test of isLongueurTitreValid method, of class LivreValide.
* @author Morgann
*/
@Test
public void testIsLongueurTitreValid() {
@@ -78,4 +82,19 @@ public class LivreValideTest {
fail("The test case is a prototype.");
}
/**
* Test of isTitreValid method, of class LivreValide.
* @author Steve
*/
@Test
public void testIsContenuTitreValide() {
System.out.println("isTitreValid");
String titre = "";
boolean expResult = false;
boolean result = LivreValide.isContenuTitreValide(titre);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}