Adds stubbing and verification for migration setRequired

This commit is contained in:
ericdecanini 2022-03-07 12:22:25 +01:00
parent 085dd943ff
commit 0d75273121

View file

@ -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())
}
}