Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jesus morales villegas
/
diseno_software
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
56969736
authored
Dec 28, 2023
by
David Rodríguez Muro
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Changes by elena
parent
303c5d01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
Test/BibliotecaTest.java
src/Ejemplar.java
Test/BibliotecaTest.java
View file @
56969736
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
src/Ejemplar.java
View file @
56969736
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment