Initialisation branche steve
This commit is contained in:
@@ -36,6 +36,12 @@ public class LivreValide {
|
||||
// 5. Titre : non null et au moins 2 caractères
|
||||
public static boolean isContenuTitreValide(String titre) {
|
||||
// TODO Steve: implémenter la validation
|
||||
return false;
|
||||
if (titre == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean contenuValide = titre.matches(".*[a-zA-Z].*[a-zA-Z].*");
|
||||
|
||||
return contenuValide;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user