refactor: simplify RemoveProjectAction constructor
This commit is contained in:
parent
4c44b843ae
commit
5e3ee4bf23
@ -18,11 +18,9 @@ import java.util.Optional;
|
||||
@RequestMapping(value = "projects")
|
||||
public class RemoveProjectAction {
|
||||
private final ProjectService projectService;
|
||||
private final ProjectMapper projectMapper;
|
||||
|
||||
public RemoveProjectAction(ProjectService projectService, ProjectMapper projectMapper) {
|
||||
public RemoveProjectAction(ProjectService projectService) {
|
||||
this.projectService = projectService;
|
||||
this.projectMapper = projectMapper;
|
||||
}
|
||||
|
||||
@Operation(summary = "Remove project by ID")
|
||||
|
@ -17,7 +17,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||
|
||||
@SpringBootTest
|
||||
@AutoConfigureMockMvc(addFilters = false)
|
||||
public class DeleteProjectActionTest {
|
||||
class RemoveProjectActionTest {
|
||||
@Autowired
|
||||
private MockMvc mockMvc;
|
||||
@Autowired
|
||||
|
Loading…
Reference in New Issue
Block a user