Rename class (code quality)
This commit is contained in:
parent
db21cd439e
commit
55fda265d9
1 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ class MigrationPresenterTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `present - no migration should occurs if ApplicationMigrationVersion is the last one`() = runTest {
|
fun `present - no migration should occurs if ApplicationMigrationVersion is the last one`() = runTest {
|
||||||
val migrations = (1..10).map { FakeMigration(it) }
|
val migrations = (1..10).map { FakeAppMigration(it) }
|
||||||
val store = InMemoryMigrationStore(migrations.maxOf { it.order })
|
val store = InMemoryMigrationStore(migrations.maxOf { it.order })
|
||||||
val presenter = createPresenter(
|
val presenter = createPresenter(
|
||||||
migrationStore = store,
|
migrationStore = store,
|
||||||
|
|
@ -57,7 +57,7 @@ class MigrationPresenterTest {
|
||||||
@Test
|
@Test
|
||||||
fun `present - testing all migrations`() = runTest {
|
fun `present - testing all migrations`() = runTest {
|
||||||
val store = InMemoryMigrationStore(0)
|
val store = InMemoryMigrationStore(0)
|
||||||
val migrations = (1..10).map { FakeMigration(it) }
|
val migrations = (1..10).map { FakeAppMigration(it) }
|
||||||
val presenter = createPresenter(
|
val presenter = createPresenter(
|
||||||
migrationStore = store,
|
migrationStore = store,
|
||||||
migrations = migrations.toSet(),
|
migrations = migrations.toSet(),
|
||||||
|
|
@ -81,13 +81,13 @@ class MigrationPresenterTest {
|
||||||
|
|
||||||
private fun createPresenter(
|
private fun createPresenter(
|
||||||
migrationStore: MigrationStore = InMemoryMigrationStore(0),
|
migrationStore: MigrationStore = InMemoryMigrationStore(0),
|
||||||
migrations: Set<AppMigration> = setOf(FakeMigration(1)),
|
migrations: Set<AppMigration> = setOf(FakeAppMigration(1)),
|
||||||
) = MigrationPresenter(
|
) = MigrationPresenter(
|
||||||
migrationStore = migrationStore,
|
migrationStore = migrationStore,
|
||||||
migrations = migrations,
|
migrations = migrations,
|
||||||
)
|
)
|
||||||
|
|
||||||
private class FakeMigration(
|
private class FakeAppMigration(
|
||||||
override val order: Int,
|
override val order: Int,
|
||||||
var migrateLambda: LambdaNoParamRecorder<Unit> = lambdaRecorder { -> },
|
var migrateLambda: LambdaNoParamRecorder<Unit> = lambdaRecorder { -> },
|
||||||
) : AppMigration {
|
) : AppMigration {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue