Skip to content
Snippets Groups Projects
Commit 69e03461 authored by Tomáš Marek's avatar Tomáš Marek
Browse files

Checkstyle fix

parent 487deb1e
No related branches found
No related tags found
1 merge request!2713 fixes by tomas
Pipeline #
package cz.muni.pa165.car.rest;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import com.fasterxml.jackson.databind.ObjectMapper;
import cz.muni.pa165.car.service.DriverManagerService;
import cz.muni.pa165.common_library.racecomponents.Car;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.web.servlet.MockMvc;
@SpringBootTest
@AutoConfigureMockMvc
......
package cz.muni.pa165.car.rest;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.BDDMockito.given;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import com.fasterxml.jackson.databind.ObjectMapper;
import cz.muni.pa165.car.facade.DriverManagerFacade;
import cz.muni.pa165.common_library.racecomponents.Car;
import cz.muni.pa165.common_library.racecomponents.Driver;
import java.util.HashSet;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.web.servlet.MockMvc;
@WebMvcTest(DriverManagerController.class)
@WebMvcTest()
class DriverManagerControllerUnitTest {
// @Autowired
......
......@@ -35,7 +35,7 @@ public class Car implements Serializable {
private Long id;
@OneToMany(mappedBy = "id",
fetch = FetchType.EAGER)
fetch = FetchType.EAGER)
private List<@Valid CarComponent> components;
@JsonIgnore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment