mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 19:08:44 +03:00
Adds stubbing and verification for migration setRequired
This commit is contained in:
parent
085dd943ff
commit
0d75273121
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ class Fake005MigrationRealm {
|
|||
every { instance.schema } returns schema
|
||||
every { schema.get("SessionParamsEntity") } returns objectSchema
|
||||
every { objectSchema.addField(any(), any()) } returns objectSchema
|
||||
every { objectSchema.setRequired(any(), any()) } returns objectSchema
|
||||
every { objectSchema.transform(any()) } returns objectSchema
|
||||
}
|
||||
|
||||
|
@ -46,6 +47,7 @@ class Fake005MigrationRealm {
|
|||
verifyOrder {
|
||||
objectSchema["SessionParamsEntity"]
|
||||
objectSchema.addField(SessionParamsEntityFields.LOGIN_TYPE, String::class.java)
|
||||
objectSchema.setRequired(SessionParamsEntityFields.LOGIN_TYPE, true)
|
||||
objectSchema.transform(any())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue