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