Skip to content

Commit

Permalink
fix: update-put-seedlot-form-endpoint-name (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu authored Dec 21, 2023
1 parent 58a134a commit 197b1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public Seedlot patchApplicantAndSeedlotInfo(
* @param form A {@link SeedlotFormSubmissionDto} containing all the form information
* @return A {@link SeedlotCreateResponseDto} containing the seedlot number and status
*/
@PutMapping("/{seedlotNumber}/form-submission")
@PutMapping("/{seedlotNumber}/a-class-form-submission")
@Operation(
summary = "Saves the Seedlot form when submitted or edited",
description =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void submitSeedlotForm_notFoundSeedlot_shouldThrowException() throws Exception {

mockMvc
.perform(
put("/api/seedlots/{seedlotNumber}/form-submission", 123)
put("/api/seedlots/{seedlotNumber}/a-class-form-submission", 123)
.with(csrf().asHeader())
.header("Content-Type", MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON)
Expand All @@ -491,7 +491,7 @@ void submitSeedlotForm_happyPath_shouldSucceed() throws Exception {

mockMvc
.perform(
put("/api/seedlots/{seedlotNumber}/form-submission", 123)
put("/api/seedlots/{seedlotNumber}/a-class-form-submission", 123)
.with(csrf().asHeader())
.header("Content-Type", MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON)
Expand Down

0 comments on commit 197b1bc

Please sign in to comment.