Package it.unisa.thespoon.model.dao
Class DashboardPersonaleDAOTest
java.lang.Object
it.unisa.thespoon.model.dao.DashboardPersonaleDAOTest
- Author:
- Jacopo Gennaro Esposito Classe che implementa il test del DAO DashboardPersonale, in particolare verifica la correttezza della query custom utilizzata per recuperare i dettagli di un account in base all'indirizzo email.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
Verifica la correttezza del valore tornato in caso di mail presente nel DB(package private) void
Verifica la correttezza del valore tornato in caso di mail presente nel DB(package private) void
Verifica la correttezza del valore tornato in caso di mail non presente nel DB(package private) void
Verifica la correttezza del valore tornato in caso di mail non presente nel DB(package private) void
tearDown()
-
Field Details
-
underTest
-
email
String email
-
-
Constructor Details
-
DashboardPersonaleDAOTest
DashboardPersonaleDAOTest()
-
-
Method Details
-
tearDown
@AfterEach void tearDown() -
findDetailsByEmail
@Test void findDetailsByEmail()Verifica la correttezza del valore tornato in caso di mail presente nel DB -
findAllDetailsByEmail
@Test void findAllDetailsByEmail()Verifica la correttezza del valore tornato in caso di mail presente nel DB -
NotFoundDetailsByEmail
@Test void NotFoundDetailsByEmail()Verifica la correttezza del valore tornato in caso di mail non presente nel DB -
NotFoundAllDetailsByEmail
@Test void NotFoundAllDetailsByEmail()Verifica la correttezza del valore tornato in caso di mail non presente nel DB
-