-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,7 @@ package com.vauthenticator.server.account.signup | |
|
||
import com.vauthenticator.server.account.AccountTestFixture.anAccount | ||
import com.vauthenticator.server.account.Email | ||
import com.vauthenticator.server.account.mailverification.SendVerifyMailChallenge | ||
import com.vauthenticator.server.account.repository.AccountRepository | ||
import com.vauthenticator.server.account.welcome.SayWelcome | ||
import com.vauthenticator.server.clientapp.ClientAppFixture.aClientApp | ||
import com.vauthenticator.server.events.SignUpEvent | ||
import com.vauthenticator.server.events.VAuthenticatorEventsDispatcher | ||
|
@@ -39,15 +37,9 @@ internal class SignUpUseTest { | |
@MockK | ||
lateinit var passwordPolicy: PasswordPolicy | ||
|
||
@MockK | ||
lateinit var sayWelcome: SayWelcome | ||
|
||
@MockK | ||
lateinit var vAuthenticatorPasswordEncoder: VAuthenticatorPasswordEncoder | ||
|
||
@MockK | ||
lateinit var sendVerifyMailChallenge: SendVerifyMailChallenge | ||
|
||
@MockK | ||
lateinit var vAuthenticatorEventsDispatcher: VAuthenticatorEventsDispatcher | ||
|
||
|
@@ -77,8 +69,6 @@ internal class SignUpUseTest { | |
every { clientAccountRepository.findOne(clientAppId) } returns Optional.of(aClientApp) | ||
every { vAuthenticatorPasswordEncoder.encode("secret") } returns "encrypted_secret" | ||
every { accountRepository.create(account) } just runs | ||
every { sayWelcome.welcome(account.email) } just runs | ||
every { sendVerifyMailChallenge.sendVerifyMail("[email protected]") } just runs | ||
every { vAuthenticatorEventsDispatcher.dispatch(signUpEvent) } just runs | ||
|
||
|
||
|
@@ -88,8 +78,6 @@ internal class SignUpUseTest { | |
verify { clientAccountRepository.findOne(clientAppId) } | ||
verify { vAuthenticatorPasswordEncoder.encode("secret") } | ||
verify { accountRepository.create(account) } | ||
verify { sayWelcome.welcome(account.email) } | ||
verify { sendVerifyMailChallenge.sendVerifyMail("[email protected]") } | ||
verify { vAuthenticatorEventsDispatcher.dispatch(signUpEvent) } | ||
} | ||
|
||
|
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