-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get account requests by ID in storage update method (#12955)
- Loading branch information
1 parent
6049c81
commit 9f0ca34
Showing
3 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ public void testUpdateAccountRequest_invalidEmail_throwsInvalidParametersExcepti | |
public void testUpdateAccountRequest_accountRequestDoesNotExist_throwsEntityDoesNotExistException() { | ||
AccountRequest accountRequest = | ||
new AccountRequest("[email protected]", "name", "institute", AccountRequestStatus.PENDING, "comments"); | ||
doReturn(null).when(accountRequestDb).getAccountRequest(anyString(), anyString()); | ||
doReturn(null).when(accountRequestDb).getAccountRequest(accountRequest.getId()); | ||
|
||
assertThrows(EntityDoesNotExistException.class, | ||
() -> accountRequestDb.updateAccountRequest(accountRequest)); | ||
|
@@ -118,7 +118,7 @@ public void testUpdateAccountRequest_accountRequestDoesNotExist_throwsEntityDoes | |
public void testUpdateAccountRequest_success() throws InvalidParametersException, EntityDoesNotExistException { | ||
AccountRequest accountRequest = | ||
new AccountRequest("[email protected]", "name", "institute", AccountRequestStatus.PENDING, "comments"); | ||
doReturn(accountRequest).when(accountRequestDb).getAccountRequest(anyString(), anyString()); | ||
doReturn(accountRequest).when(accountRequestDb).getAccountRequest(accountRequest.getId()); | ||
|
||
accountRequestDb.updateAccountRequest(accountRequest); | ||
|
||
|