-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from MiguelFerreira18/Quick_Fix_
fix: quick fix in the delivery
- Loading branch information
Showing
4 changed files
with
8 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,7 @@ | |
import isep.ipp.pt.api.desofs.Model.TipoPacote; | ||
import isep.ipp.pt.api.desofs.Model.UserModel.Role; | ||
import isep.ipp.pt.api.desofs.Model.UserModel.User; | ||
import isep.ipp.pt.api.desofs.Repository.Interface.EncomendaServiceRepo; | ||
import isep.ipp.pt.api.desofs.Repository.Interface.PacoteServiceRepo; | ||
import isep.ipp.pt.api.desofs.Repository.Interface.TipoPacoteServiceRepo; | ||
import isep.ipp.pt.api.desofs.Repository.Interface.UserServiceRepo; | ||
import isep.ipp.pt.api.desofs.Repository.Interface.*; | ||
import jakarta.validation.ConstraintViolation; | ||
import jakarta.validation.Validation; | ||
import jakarta.validation.Validator; | ||
|
@@ -49,9 +46,16 @@ public class EncomendaServiceImpltest { | |
@Autowired | ||
private EncomendaService encomendaService; | ||
|
||
@Autowired | ||
private ReviewServiceRepo reviewServiceRepo; | ||
@Autowired | ||
private ReceitaServiceRepo receitaServiceRepo; | ||
|
||
private Validator validator; | ||
@BeforeEach | ||
public void populate() { | ||
receitaServiceRepo.deleteAll(); | ||
reviewServiceRepo.deleteAll(); | ||
encomendaRepo.deleteAll(); | ||
pacoteRepo.deleteAll(); | ||
userRepo.deleteAll(); | ||
|
@@ -68,14 +72,6 @@ public void populate() { | |
validator = validatorFactory.getValidator(); | ||
} | ||
|
||
@AfterEach | ||
public void clean() { | ||
encomendaRepo.deleteAll(); | ||
pacoteRepo.deleteAll(); | ||
userRepo.deleteAll(); | ||
tipoPacoteRepo.deleteAll(); | ||
} | ||
|
||
@ParameterizedTest | ||
@CsvSource({ | ||
"1, 5, 10, pacote, REGISTADO, [email protected],2024-05-07T08:30:00", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters