-
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
15 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/vauthenticator/server/keys/domain/KeyDecrypter.kt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.vauthenticator.server.keys.domain | ||
|
||
interface KeyDecrypter { | ||
fun interface KeyDecrypter { | ||
fun decryptKey(encrypted: String): String | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -4,6 +4,8 @@ import com.vauthenticator.server.support.AccountTestFixture.anAccount | |
import org.junit.jupiter.api.Assertions.assertEquals | ||
import org.junit.jupiter.api.Test | ||
|
||
private const val NEW_ACCOUNT_EMAIL_EMAIL_COM = "[email protected]" | ||
|
||
internal class SimpleEMailMessageFactoryTest { | ||
|
||
private val underTest = SimpleEMailMessageFactory("from", "subject", EMailType.WELCOME) | ||
|
@@ -34,15 +36,15 @@ internal class SimpleEMailMessageFactoryTest { | |
@Test | ||
internal fun `make a new mail message when the sender mail has changed`() { | ||
val account = anAccount() | ||
val actual = underTest.makeMailMessageFor(account, mapOf("key" to "value", "email" to "[email protected]")) | ||
val actual = underTest.makeMailMessageFor(account, mapOf("key" to "value", "email" to NEW_ACCOUNT_EMAIL_EMAIL_COM)) | ||
|
||
val expected = EMailMessage( | ||
"[email protected]", "from", "subject", EMailType.WELCOME, | ||
NEW_ACCOUNT_EMAIL_EMAIL_COM, "from", "subject", EMailType.WELCOME, | ||
mapOf( | ||
"enabled" to account.enabled, | ||
"username" to account.username, | ||
"authorities" to account.authorities, | ||
"email" to "[email protected]", | ||
"email" to NEW_ACCOUNT_EMAIL_EMAIL_COM, | ||
"firstName" to account.firstName, | ||
"lastName" to account.lastName, | ||
"birthDate" to "", | ||
|
2 changes: 1 addition & 1 deletion
2
src/test/kotlin/com/vauthenticator/server/events/LoggerEventConsumerTest.kt
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
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
2 changes: 1 addition & 1 deletion
2
src/test/kotlin/com/vauthenticator/server/mask/SensitivePhoneMaskerTest.kt
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
4 changes: 2 additions & 2 deletions
4
...test/kotlin/com/vauthenticator/server/role/adapter/dynamodb/DynamoDbRoleRepositoryTest.kt
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
4 changes: 2 additions & 2 deletions
4
src/test/kotlin/com/vauthenticator/server/role/adapter/jdbc/JdbcRoleRepositoryTest.kt
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