refactor: simplify RemoveProjectAction constructor
Some checks failed
Quality Check / Tests (pull_request) Successful in 1m0s
Quality Check / Checkstyle Main (pull_request) Successful in 45s
Build PR / Build and analyze (pull_request) Successful in 1m56s
gitea-sonarqube-bot ERROR

This commit is contained in:
Jan Gleytenhoover 2024-10-02 11:31:15 +02:00
parent 4c44b843ae
commit 5e3ee4bf23
Signed by: jank
GPG Key ID: B267751B8AE29EFE
2 changed files with 2 additions and 4 deletions

@ -18,11 +18,9 @@ import java.util.Optional;
@RequestMapping(value = "projects") @RequestMapping(value = "projects")
public class RemoveProjectAction { public class RemoveProjectAction {
private final ProjectService projectService; private final ProjectService projectService;
private final ProjectMapper projectMapper;
public RemoveProjectAction(ProjectService projectService, ProjectMapper projectMapper) { public RemoveProjectAction(ProjectService projectService) {
this.projectService = projectService; this.projectService = projectService;
this.projectMapper = projectMapper;
} }
@Operation(summary = "Remove project by ID") @Operation(summary = "Remove project by ID")

@ -17,7 +17,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@SpringBootTest @SpringBootTest
@AutoConfigureMockMvc(addFilters = false) @AutoConfigureMockMvc(addFilters = false)
public class DeleteProjectActionTest { class RemoveProjectActionTest {
@Autowired @Autowired
private MockMvc mockMvc; private MockMvc mockMvc;
@Autowired @Autowired