mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 20:55:10 +00:00
Revert "Enable Change Number."
This reverts commit 97642f555e8a1cb89c7bae209b218a1c63532ada.
This commit is contained in:
committed by
Greyson Parrelli
parent
88aa67b847
commit
0fa3b2f8f9
@@ -1,19 +0,0 @@
|
||||
package org.thoughtcrime.securesms.migrations
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
import java.lang.reflect.Field
|
||||
import java.lang.reflect.Modifier
|
||||
|
||||
class ApplicationMigrationsTest {
|
||||
@Test
|
||||
fun `ensure ApplicationMigration CURRENT_VERSION matches max version`() {
|
||||
val fields: Array<Field> = ApplicationMigrations.Version::class.java.declaredFields
|
||||
|
||||
val maxField: Int? = fields.filter { Modifier.isStatic(it.modifiers) && it.type == Int::class.java }
|
||||
.map { it.getInt(null) }
|
||||
.maxOrNull()
|
||||
|
||||
assertEquals(ApplicationMigrations.CURRENT_VERSION, maxField)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user