mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
Update NuOfferControllerTests.java
This commit is contained in:
parent
080dd2d75c
commit
b329c3c6e9
1 changed files with 5 additions and 2 deletions
|
@ -51,6 +51,9 @@ class NuOfferControllerTest {
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setup() {
|
void setup() {
|
||||||
User user1 = new User();
|
User user1 = new User();
|
||||||
|
Code code1 = new Code();
|
||||||
|
code1.setActivo(true);
|
||||||
|
code1.setCode("codeTest1");
|
||||||
user1.setUsername("user1");
|
user1.setUsername("user1");
|
||||||
user1.setPassword("user1");
|
user1.setPassword("user1");
|
||||||
Client client1 = new Client();
|
Client client1 = new Client();
|
||||||
|
@ -62,7 +65,7 @@ class NuOfferControllerTest {
|
||||||
client1.setFinish(LocalTime.of(01, 01));
|
client1.setFinish(LocalTime.of(01, 01));
|
||||||
client1.setTelephone("123456789");
|
client1.setTelephone("123456789");
|
||||||
client1.setDescription("client1");
|
client1.setDescription("client1");
|
||||||
client1.setCode("client1");
|
client1.setCode(code1);
|
||||||
client1.setFood("client1");
|
client1.setFood("client1");
|
||||||
client1.setUsuar(user1);
|
client1.setUsuar(user1);
|
||||||
BDDMockito.given(this.clientService.getCurrentClient()).willReturn(client1);
|
BDDMockito.given(this.clientService.getCurrentClient()).willReturn(client1);
|
||||||
|
@ -148,4 +151,4 @@ class NuOfferControllerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue