Update TimeOfferControllerTests.java

This commit is contained in:
Abraham Garcia 2021-04-12 19:20:39 +02:00 committed by GitHub
parent 1fbcfc9328
commit 7ec05e1060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,9 @@ class TimeOfferControllerTest {
@BeforeEach
void setup() {
User user1 = new User();
Code code1 = new Code();
code1.setActivo(true);
code1.setCode("codeTest1");
user1.setUsername("user1");
user1.setPassword("user1");
Client client1 = new Client();
@ -62,7 +65,7 @@ class TimeOfferControllerTest {
client1.setFinish(LocalTime.of(01, 01));
client1.setTelephone("123456789");
client1.setDescription("client1");
client1.setCode("client1");
client1.setCode(code1);
client1.setFood("client1");
client1.setUsuar(user1);
BDDMockito.given(this.clientService.getCurrentClient()).willReturn(client1);
@ -138,4 +141,4 @@ class TimeOfferControllerTest {
}
}