| | |
| | | |
| | | import java.util.stream.Stream; |
| | | |
| | | import org.junit.jupiter.api.Order; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.junit.jupiter.params.provider.Arguments; |
| | | import org.junit.jupiter.params.provider.MethodSource; |
| | |
| | | private ObjectMapper mapper; |
| | | |
| | | @Test |
| | | @Order(1) |
| | | @MethodSource("getTestHighways") |
| | | void testInsert() throws Exception { |
| | | mockMvc.perform(post("/highways") |
| | |
| | | } |
| | | |
| | | @Test |
| | | @Order(2) |
| | | @MethodSource("getTestDataFindById") |
| | | void testFindById(Integer id, String name) throws Exception { |
| | | mockMvc.perform(post("/highways/{id}",id)) |