feat(project): Delete project (SCRUM-35) #29
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user