mirror of
https://github.com/corda/corda.git
synced 2025-06-23 01:19:00 +00:00
Fingerprint for Exception class reverted to V3 (fixes CORDA-2227 & CORDA-2292) (#4386)
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package net.corda.serialization.internal
|
||||
|
||||
import net.corda.serialization.internal.amqp.custom.ThrowableSerializer
|
||||
import net.corda.serialization.internal.amqp.testutils.testDefaultFactoryNoEvolution
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.Test
|
||||
|
||||
class SerializationCompatibilityTests {
|
||||
@Test
|
||||
fun `fingerprint is stable`() {
|
||||
val factory = testDefaultFactoryNoEvolution().apply { register(ThrowableSerializer(this)) }
|
||||
assertThat(factory.get(Exception::class.java).typeDescriptor.toString()).isEqualTo("net.corda:ApZ2a/36VVskaoDZMbiZ8A==")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user