Skip to content

Commit

Permalink
Refactor tests to get rid of a parameterized test
Browse files Browse the repository at this point in the history
[#163096443]

Signed-off-by: Natalie Bennett <nbennett@pivotal.io>
Co-authored-by: Natalie Bennett <nbennett@pivotal.io>
  • Loading branch information
cfryanr and njbennett committed Feb 1, 2019
1 parent 67b3925 commit 84b0c13
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 214 deletions.
Expand Up @@ -615,7 +615,7 @@ public void setStatuses(Map<Class<? extends Exception>, HttpStatus> statuses) {
this.statuses = statuses; this.statuses = statuses;
} }


private void throwWhenInvalidSelfEdit(@RequestBody ScimUser user, @PathVariable String userId, HttpServletRequest request, Authentication authentication) { private void throwWhenInvalidSelfEdit(ScimUser user, String userId, HttpServletRequest request, Authentication authentication) {
boolean isSelfEdit = isSelfCheck.isUserSelf(request, 1); boolean isSelfEdit = isSelfCheck.isUserSelf(request, 1);
if (!isSelfEdit) { if (!isSelfEdit) {
return; return;
Expand Down

0 comments on commit 84b0c13

Please sign in to comment.