Fix typos
This commit is contained in:
parent
525e3a4a3f
commit
761382da23
@ -106,7 +106,7 @@ internal class RequiredAuthFilterTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `it should allow a valid token"`() {
|
||||
fun `it should allow a valid token`() {
|
||||
val jwtPayload = LoggedInUser(1, "user")
|
||||
val token = simpleJwt.sign(jwtPayload)
|
||||
val response = app(Request(GET, "/protected").cookie("Bearer", token))
|
||||
|
||||
@ -10,7 +10,7 @@ plugins {
|
||||
dependencies {
|
||||
api(project(":config"))
|
||||
api(project(":types"))
|
||||
implementation(project(":persistance"))
|
||||
implementation(project(":persistence"))
|
||||
implementation(project(":search"))
|
||||
|
||||
api(Libs.arrowCoreData)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.domain.usecases
|
||||
|
||||
import be.simplenotes.persistance.DbHealthCheck
|
||||
import be.simplenotes.persistence.DbHealthCheck
|
||||
import javax.inject.Singleton
|
||||
|
||||
interface HealthCheckService {
|
||||
|
||||
@ -5,9 +5,9 @@ import be.simplenotes.domain.security.HtmlSanitizer
|
||||
import be.simplenotes.domain.usecases.markdown.MarkdownConverter
|
||||
import be.simplenotes.domain.usecases.markdown.MarkdownParsingError
|
||||
import be.simplenotes.domain.usecases.search.parseSearchTerms
|
||||
import be.simplenotes.persistance.repositories.NoteRepository
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistance.transactions.TransactionService
|
||||
import be.simplenotes.persistence.repositories.NoteRepository
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.transactions.TransactionService
|
||||
import be.simplenotes.search.NoteSearcher
|
||||
import be.simplenotes.types.LoggedInUser
|
||||
import be.simplenotes.types.Note
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.domain.usecases.export
|
||||
|
||||
import be.simplenotes.persistance.repositories.NoteRepository
|
||||
import be.simplenotes.persistence.repositories.NoteRepository
|
||||
import be.simplenotes.types.ExportedNote
|
||||
import io.micronaut.context.annotation.Primary
|
||||
import kotlinx.serialization.builtins.ListSerializer
|
||||
|
||||
@ -5,8 +5,8 @@ import arrow.core.computations.either
|
||||
import arrow.core.rightIfNotNull
|
||||
import be.simplenotes.domain.security.PasswordHash
|
||||
import be.simplenotes.domain.validation.UserValidations
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistance.transactions.TransactionService
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.transactions.TransactionService
|
||||
import be.simplenotes.search.NoteSearcher
|
||||
import io.micronaut.context.annotation.Primary
|
||||
import javax.inject.Singleton
|
||||
|
||||
@ -6,7 +6,7 @@ import arrow.core.rightIfNotNull
|
||||
import be.simplenotes.domain.security.PasswordHash
|
||||
import be.simplenotes.domain.security.SimpleJwt
|
||||
import be.simplenotes.domain.validation.UserValidations
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.types.LoggedInUser
|
||||
import io.micronaut.context.annotation.Primary
|
||||
import javax.inject.Singleton
|
||||
|
||||
@ -5,8 +5,8 @@ import arrow.core.filterOrElse
|
||||
import arrow.core.leftIfNull
|
||||
import be.simplenotes.domain.security.PasswordHash
|
||||
import be.simplenotes.domain.validation.UserValidations
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistance.transactions.TransactionService
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.transactions.TransactionService
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import io.micronaut.context.annotation.Primary
|
||||
import javax.inject.Singleton
|
||||
|
||||
@ -6,7 +6,7 @@ import be.simplenotes.domain.security.SimpleJwt
|
||||
import be.simplenotes.domain.security.UserJwtMapper
|
||||
import be.simplenotes.domain.testutils.isLeftOfType
|
||||
import be.simplenotes.domain.testutils.isRight
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import com.natpryce.hamkrest.assertion.assertThat
|
||||
import io.mockk.*
|
||||
|
||||
@ -3,8 +3,8 @@ package be.simplenotes.domain.usecases.users.register
|
||||
import be.simplenotes.domain.security.BcryptPasswordHash
|
||||
import be.simplenotes.domain.testutils.isLeftOfType
|
||||
import be.simplenotes.domain.testutils.isRight
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistance.transactions.TransactionService
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.transactions.TransactionService
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import com.natpryce.hamkrest.assertion.assertThat
|
||||
import com.natpryce.hamkrest.equalTo
|
||||
|
||||
@ -33,7 +33,7 @@ dependencies {
|
||||
|
||||
testFixturesImplementation(project(":types"))
|
||||
testFixturesImplementation(project(":config"))
|
||||
testFixturesImplementation(project(":persistance"))
|
||||
testFixturesImplementation(project(":persistence"))
|
||||
|
||||
testFixturesImplementation(Libs.Test.faker) {
|
||||
exclude(group = "org.yaml")
|
||||
@ -1,8 +1,8 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import be.simplenotes.persistance.utils.DbType
|
||||
import be.simplenotes.persistance.utils.type
|
||||
import be.simplenotes.persistence.utils.DbType
|
||||
import be.simplenotes.persistence.utils.type
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.database.asIterable
|
||||
import me.liuwj.ktorm.database.use
|
||||
@ -1,8 +1,8 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import be.simplenotes.persistance.utils.DbType
|
||||
import be.simplenotes.persistance.utils.type
|
||||
import be.simplenotes.persistence.utils.DbType
|
||||
import be.simplenotes.persistence.utils.type
|
||||
import org.flywaydb.core.Flyway
|
||||
import javax.inject.Singleton
|
||||
import javax.sql.DataSource
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import com.zaxxer.hikari.HikariConfig
|
||||
@ -10,7 +10,7 @@ import javax.inject.Singleton
|
||||
import javax.sql.DataSource
|
||||
|
||||
@Factory
|
||||
class PersistanceModule {
|
||||
class PersistenceModule {
|
||||
|
||||
@Singleton
|
||||
internal fun database(migrations: DbMigrations, dataSource: DataSource): Database {
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.converters
|
||||
package be.simplenotes.persistence.converters
|
||||
|
||||
import be.simplenotes.persistance.notes.NoteEntity
|
||||
import be.simplenotes.persistence.notes.NoteEntity
|
||||
import be.simplenotes.types.*
|
||||
import me.liuwj.ktorm.entity.Entity
|
||||
import org.mapstruct.Mapper
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.converters
|
||||
package be.simplenotes.persistence.converters
|
||||
|
||||
import be.simplenotes.persistance.users.UserEntity
|
||||
import be.simplenotes.persistence.users.UserEntity
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import be.simplenotes.types.User
|
||||
import me.liuwj.ktorm.entity.Entity
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.extensions
|
||||
package be.simplenotes.persistence.extensions
|
||||
|
||||
import me.liuwj.ktorm.schema.BaseTable
|
||||
import me.liuwj.ktorm.schema.SqlType
|
||||
@ -1,7 +1,7 @@
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.persistance.converters.NoteConverter
|
||||
import be.simplenotes.persistance.repositories.NoteRepository
|
||||
import be.simplenotes.persistence.converters.NoteConverter
|
||||
import be.simplenotes.persistence.repositories.NoteRepository
|
||||
import be.simplenotes.types.ExportedNote
|
||||
import be.simplenotes.types.Note
|
||||
import be.simplenotes.types.PersistedNote
|
||||
@ -1,10 +1,10 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.persistance.extensions.uuidBinary
|
||||
import be.simplenotes.persistance.users.UserEntity
|
||||
import be.simplenotes.persistance.users.Users
|
||||
import be.simplenotes.persistence.extensions.uuidBinary
|
||||
import be.simplenotes.persistence.users.UserEntity
|
||||
import be.simplenotes.persistence.users.Users
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.entity.Entity
|
||||
import me.liuwj.ktorm.entity.sequenceOf
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.persistance.extensions.uuidBinary
|
||||
import be.simplenotes.persistence.extensions.uuidBinary
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.entity.Entity
|
||||
import me.liuwj.ktorm.entity.sequenceOf
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.repositories
|
||||
package be.simplenotes.persistence.repositories
|
||||
|
||||
import be.simplenotes.types.ExportedNote
|
||||
import be.simplenotes.types.Note
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.repositories
|
||||
package be.simplenotes.persistence.repositories
|
||||
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import be.simplenotes.types.User
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.transactions
|
||||
package be.simplenotes.persistence.transactions
|
||||
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import javax.inject.Singleton
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.transactions
|
||||
package be.simplenotes.persistence.transactions
|
||||
|
||||
interface TransactionService {
|
||||
fun <T> use(block: () -> T): T
|
||||
@ -1,7 +1,7 @@
|
||||
package be.simplenotes.persistance.users
|
||||
package be.simplenotes.persistence.users
|
||||
|
||||
import be.simplenotes.persistance.converters.UserConverter
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistence.converters.UserConverter
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import be.simplenotes.types.User
|
||||
import me.liuwj.ktorm.database.Database
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.users
|
||||
package be.simplenotes.persistence.users
|
||||
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.entity.Entity
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance.utils
|
||||
package be.simplenotes.persistence.utils
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import org.testcontainers.containers.MariaDBContainer
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import io.micronaut.context.BeanContext
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.converters
|
||||
package be.simplenotes.persistence.converters
|
||||
|
||||
import be.simplenotes.persistance.notes.NoteEntity
|
||||
import be.simplenotes.persistence.notes.NoteEntity
|
||||
import be.simplenotes.types.*
|
||||
import io.micronaut.context.BeanContext
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.converters
|
||||
package be.simplenotes.persistence.converters
|
||||
|
||||
import be.simplenotes.persistance.users.UserEntity
|
||||
import be.simplenotes.persistence.users.UserEntity
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import be.simplenotes.types.User
|
||||
import io.micronaut.context.BeanContext
|
||||
@ -1,10 +1,10 @@
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.persistance.DbTest
|
||||
import be.simplenotes.persistance.converters.NoteConverter
|
||||
import be.simplenotes.persistance.repositories.NoteRepository
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistance.users.createFakeUser
|
||||
import be.simplenotes.persistence.DbTest
|
||||
import be.simplenotes.persistence.converters.NoteConverter
|
||||
import be.simplenotes.persistence.repositories.NoteRepository
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.users.createFakeUser
|
||||
import be.simplenotes.types.ExportedNote
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import me.liuwj.ktorm.database.Database
|
||||
@ -1,9 +1,9 @@
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import be.simplenotes.persistance.KMariadbContainer
|
||||
import be.simplenotes.persistance.h2dataSourceConfig
|
||||
import be.simplenotes.persistance.mariadbDataSourceConfig
|
||||
import be.simplenotes.persistence.KMariadbContainer
|
||||
import be.simplenotes.persistence.h2dataSourceConfig
|
||||
import be.simplenotes.persistence.mariadbDataSourceConfig
|
||||
import org.junit.jupiter.api.AfterAll
|
||||
import org.junit.jupiter.api.parallel.ResourceLock
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package be.simplenotes.persistance.users
|
||||
package be.simplenotes.persistence.users
|
||||
|
||||
import be.simplenotes.persistance.DbTest
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistence.DbTest
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.dsl.eq
|
||||
import me.liuwj.ktorm.entity.find
|
||||
@ -1,9 +1,9 @@
|
||||
package be.simplenotes.persistance.users
|
||||
package be.simplenotes.persistence.users
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import be.simplenotes.persistance.KMariadbContainer
|
||||
import be.simplenotes.persistance.h2dataSourceConfig
|
||||
import be.simplenotes.persistance.mariadbDataSourceConfig
|
||||
import be.simplenotes.persistence.KMariadbContainer
|
||||
import be.simplenotes.persistence.h2dataSourceConfig
|
||||
import be.simplenotes.persistence.mariadbDataSourceConfig
|
||||
import org.junit.jupiter.api.AfterAll
|
||||
import org.junit.jupiter.api.parallel.ResourceLock
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package be.simplenotes.persistance
|
||||
package be.simplenotes.persistence
|
||||
|
||||
import be.simplenotes.config.DataSourceConfig
|
||||
import io.micronaut.context.BeanContext
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.notes
|
||||
package be.simplenotes.persistence.notes
|
||||
|
||||
import be.simplenotes.persistance.repositories.NoteRepository
|
||||
import be.simplenotes.persistence.repositories.NoteRepository
|
||||
import be.simplenotes.types.*
|
||||
import com.github.javafaker.Faker
|
||||
import java.util.*
|
||||
@ -1,6 +1,6 @@
|
||||
package be.simplenotes.persistance.users
|
||||
package be.simplenotes.persistence.users
|
||||
|
||||
import be.simplenotes.persistance.repositories.UserRepository
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import be.simplenotes.types.User
|
||||
import com.github.javafaker.Faker
|
||||
@ -5,6 +5,6 @@ include(":app")
|
||||
include(":domain")
|
||||
include(":search")
|
||||
include(":types")
|
||||
include(":persistance")
|
||||
include(":persistence")
|
||||
include(":css")
|
||||
include(":junit-config")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user