|
1 | 1 | package com.codedifferently.lesson16.web;
|
2 | 2 |
|
3 |
| -import static org.assertj.core.api.Assertions.assertThat; |
4 |
| -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; |
5 |
| -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
6 |
| -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; |
7 |
| -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; |
8 |
| -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
9 |
| - |
10 |
| -import com.codedifferently.lesson16.Lesson16; |
11 |
| -import com.codedifferently.lesson16.library.Library; |
12 |
| -import com.codedifferently.lesson16.library.LibraryGuest; |
13 | 3 | import java.util.List;
|
14 | 4 | import java.util.UUID;
|
| 5 | + |
| 6 | +import static org.assertj.core.api.Assertions.assertThat; |
15 | 7 | import org.junit.jupiter.api.BeforeAll;
|
16 | 8 | import org.junit.jupiter.api.Test;
|
17 | 9 | import org.springframework.beans.factory.annotation.Autowired;
|
18 | 10 | import org.springframework.boot.test.context.SpringBootTest;
|
19 | 11 | import org.springframework.http.MediaType;
|
20 | 12 | import org.springframework.test.context.ContextConfiguration;
|
21 | 13 | import org.springframework.test.web.servlet.MockMvc;
|
| 14 | +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; |
| 15 | +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
| 16 | +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; |
| 17 | +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; |
| 18 | +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
22 | 19 | import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
23 | 20 | import org.springframework.web.context.WebApplicationContext;
|
24 | 21 |
|
| 22 | +import com.codedifferently.lesson16.Lesson16; |
| 23 | +import com.codedifferently.lesson16.library.Library; |
| 24 | +import com.codedifferently.lesson16.library.LibraryGuest; |
| 25 | + |
| 26 | +// ___________________________________________________________ |
| 27 | +// THIS CODE WAS MADE IN COLLABORATION WITH VICENTE AND RICH |
| 28 | +// ___________________________________________________________ |
| 29 | + |
25 | 30 | @SpringBootTest
|
26 | 31 | @ContextConfiguration(classes = Lesson16.class)
|
27 | 32 | class PatronControllerTest {
|
|
0 commit comments