Changes by elena

parent 303c5d01
Showing with 6 additions and 2 deletions
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.LocalDate;
import static org.junit.jupiter.api.Assertions.*;
class BibliotecaTest {
......@@ -30,6 +31,7 @@ class BibliotecaTest {
);
}
@Test
void comprobarSacarLibro() {
Ejemplar e1 = new Ejemplar();
......@@ -55,5 +57,6 @@ class BibliotecaTest {
() -> assertFalse(biblioteca.ComprobarSacarLibro(557), "ISBN existente, estado no deteriorado y no disponible"),
() -> assertFalse(biblioteca.ComprobarSacarLibro(678), "ISBN existente, estado deteriorado y no disponible")
);
}
}
\ No newline at end of file
......@@ -4,8 +4,8 @@ public class Ejemplar extends Libro {
private String _fechaCompra;
private String _estado = "";
private Boolean _subjectstate;
private Integer _numReservas;
public Sancion _unnamed_Sancion_6;
private Integer _numReservas = 0;
public Sancion _sancion;
public EstrategiaPrestamo _estrategiaPrestamo;
public EstrategiaReserva _estrategiaReserva;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment