mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Various cleanups to AMQP and Kryo serialisation:
* PartyAndCertificate serialiser has been converted to deal with just CertPath * Removed X500Name serialiser as we no longer use the BC implementation and have our own CordaX500Name * Converted X509 cert serialiser to use Java certs and not BC X509 cert holder * Added to test to AMQP serialisation to make sure c'tor is invoked on deserialisation
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
package net.corda.core.contracts
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThatExceptionOfType
|
||||
import org.junit.Test
|
||||
|
||||
class PrivacySaltTest {
|
||||
@Test
|
||||
fun `all-zero PrivacySalt not allowed`() {
|
||||
assertThatExceptionOfType(IllegalArgumentException::class.java).isThrownBy {
|
||||
PrivacySalt(ByteArray(32))
|
||||
}.withMessage("Privacy salt should not be all zeros.")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user