mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-06 15:49:25 +00:00
improve tests of repos
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
package full
|
||||
|
||||
import CommonCRUDRepoTests
|
||||
import com.benasher44.uuid.uuid4
|
||||
import dev.inmo.micro_utils.repos.CRUDRepo
|
||||
import dev.inmo.micro_utils.repos.MapCRUDRepo
|
||||
import kotlinx.coroutines.test.TestResult
|
||||
import kotlin.test.*
|
||||
import dev.inmo.micro_utils.repos.common.tests.CommonCRUDRepoTests
|
||||
|
||||
class InMemoryCRUDRepoTests : CommonCRUDRepoTests() {
|
||||
override val repoCreator: suspend () -> CRUDRepo<Registered, String, New> = {
|
||||
@@ -18,14 +16,4 @@ class InMemoryCRUDRepoTests : CommonCRUDRepoTests() {
|
||||
id to Registered(id, it.data)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
override fun creatingWorksProperly(): TestResult {
|
||||
return super.creatingWorksProperly()
|
||||
}
|
||||
|
||||
@Test
|
||||
override fun removingWorksProperly(): TestResult {
|
||||
return super.removingWorksProperly()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user