test Bibliotheque addLivre
This commit is contained in:
@@ -30,7 +30,7 @@ public class Bibliotheque {
|
||||
if (issues.length() < 1) {
|
||||
System.out.println("valide");
|
||||
for (Livre livre : this.getLesLivres()) {
|
||||
if (livre.toString().equals(b.toString())) return false;
|
||||
if (livre.getIsbn().equals(b.getIsbn())) return false;
|
||||
}
|
||||
|
||||
lesLivres.add(b);
|
||||
|
Reference in New Issue
Block a user