Android security implementation Phase 1 finalization part 1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package studio.daybreak.mail
|
||||
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class AndroidVaultKeyPolicyTest {
|
||||
@Test
|
||||
fun newKeyMayBeCreatedOnlyWhenThereIsNoEncryptedStore() {
|
||||
assertTrue(AndroidVaultKeyPolicy.shouldCreateKey(hasEncryptedData = false))
|
||||
assertFalse(AndroidVaultKeyPolicy.shouldCreateKey(hasEncryptedData = true))
|
||||
assertTrue(AndroidVaultKeyPolicy.MISSING_KEY_MESSAGE.contains("not reset or replaced"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user