Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau committed Jan 13, 2025
1 parent 48aeee6 commit f6ed9f1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import ca.gc.aafc.dina.dto.TaskDTO;
import ca.gc.aafc.dina.entity.Project;
import ca.gc.aafc.dina.entity.Task;
import ca.gc.aafc.dina.exception.ResourceNotFoundException;
import ca.gc.aafc.dina.mapper.ProjectDtoMapper;
import ca.gc.aafc.dina.mapper.TaskDtoMapper;
import ca.gc.aafc.dina.repository.DinaRepositoryV2;
Expand Down Expand Up @@ -154,7 +155,8 @@ public ResponseEntity<RepresentationModel<?>> handlePostProject(@RequestBody Ent
@PatchMapping(PATH + "/" + ProjectDTO.RESOURCE_TYPE + "/{id}")
@Transactional
public ResponseEntity<RepresentationModel<?>> handlePatch(@RequestBody JsonApiDocument partialPatchDto,
@PathVariable String id) {
@PathVariable String id)
throws ResourceNotFoundException {
projectRepo.update(partialPatchDto);
return ResponseEntity.ok().build();
}
Expand Down

0 comments on commit f6ed9f1

Please sign in to comment.