Skip to content

Commit

Permalink
AYS-550 | Test Methods Have Been Refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
egehanasal committed Dec 6, 2024
1 parent 90b6a8b commit e471bf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public boolean isValid(String text, ConstraintValidatorContext constraintValidat
}

return !(text.startsWith(" ") || text.endsWith(" "));

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -786,13 +786,13 @@ void givenValidAdminRegisterApplicationRejectRequest_whenUnauthorizedForRejectin
" both ",
" justAString "
})
void givenInvalidAdminRegisterApplicationRejectRequest_whenRejectingAdminRegisterApplication_thenReturnValidationError(String reason) throws Exception {
void givenInvalidAdminRegisterApplicationRejectRequest_whenRejectingAdminRegisterApplication_thenReturnValidationError(String rejectReason) throws Exception {

// Given
String mockId = "4d04bd1e-6318-43ba-ab40-57efb8afc918";
AdminRegistrationApplicationRejectRequest mockRequest = new AdminRegistrationApplicationRejectRequestBuilder()
.withValidValues()
.withRejectReason(reason)
.withRejectReason(rejectReason)
.build();

// Then
Expand All @@ -810,7 +810,8 @@ void givenInvalidAdminRegisterApplicationRejectRequest_whenRejectingAdminRegiste

// Verify
Mockito.verify(adminRegistrationApplicationService, Mockito.never())
.reject(Mockito.anyString(), Mockito.any());
.reject(Mockito.anyString(),
Mockito.any(AdminRegistrationApplicationRejectRequest.class));
}

}

0 comments on commit e471bf5

Please sign in to comment.