mirror of
https://github.com/corda/corda.git
synced 2025-06-14 05:08:18 +00:00
Post rebase fixes
- Add missing import - Deal with files that need to move from core to nodeapi.internal - Fix up the imports
This commit is contained in:
@ -97,7 +97,6 @@ class MetaCarpenter(schemas : CarpenterSchemas,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TestMetaCarpenter(schemas: CarpenterSchemas) : MetaCarpenterBase(schemas) {
|
|
||||||
class TestMetaCarpenter(schemas : CarpenterSchemas,
|
class TestMetaCarpenter(schemas : CarpenterSchemas,
|
||||||
cc : ClassCarpenter = ClassCarpenter()) : MetaCarpenterBase(schemas, cc) {
|
cc : ClassCarpenter = ClassCarpenter()) : MetaCarpenterBase(schemas, cc) {
|
||||||
override fun build() {
|
override fun build() {
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
package net.corda.core.serialization.amqp.test
|
package net.corda.nodeapi.internal.serialization.amqp
|
||||||
|
|
||||||
import org.apache.qpid.proton.codec.Data
|
import org.apache.qpid.proton.codec.Data
|
||||||
import net.corda.core.serialization.amqp.Schema
|
|
||||||
import net.corda.core.serialization.amqp.SerializerFactory
|
|
||||||
import net.corda.core.serialization.amqp.SerializationOutput
|
|
||||||
|
|
||||||
class TestSerializationOutput(
|
class TestSerializationOutput(
|
||||||
private val verbose: Boolean,
|
private val verbose: Boolean,
|
@ -8,6 +8,7 @@ import kotlin.test.assertTrue
|
|||||||
class DeserializeAndReturnEnvelopeTests {
|
class DeserializeAndReturnEnvelopeTests {
|
||||||
|
|
||||||
fun testName(): String = Thread.currentThread().stackTrace[2].methodName
|
fun testName(): String = Thread.currentThread().stackTrace[2].methodName
|
||||||
|
|
||||||
@Suppress("NOTHING_TO_INLINE")
|
@Suppress("NOTHING_TO_INLINE")
|
||||||
inline fun classTestName(clazz: String) = "${this.javaClass.name}\$${testName()}\$$clazz"
|
inline fun classTestName(clazz: String) = "${this.javaClass.name}\$${testName()}\$$clazz"
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
package net.corda.core.serialization.amqp
|
package net.corda.nodeapi.internal.serialization.amqp
|
||||||
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
import net.corda.core.serialization.carpenter.*
|
import net.corda.nodeapi.internal.serialization.carpenter.*
|
||||||
import net.corda.core.serialization.amqp.test.TestSerializationOutput
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These tests work by having the class carpenter build the classes we serialise and then deserialise. Because
|
* These tests work by having the class carpenter build the classes we serialise and then deserialise. Because
|
@ -1,9 +1,8 @@
|
|||||||
package net.corda.core.serialization.amqp
|
package net.corda.nodeapi.internal.serialization.amqp
|
||||||
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
import net.corda.core.serialization.carpenter.*
|
import net.corda.nodeapi.internal.serialization.carpenter.*
|
||||||
import net.corda.core.serialization.amqp.test.TestSerializationOutput
|
|
||||||
|
|
||||||
interface I {
|
interface I {
|
||||||
fun getName() : String
|
fun getName() : String
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package net.corda.nodeapi.internal.serialization.amqp
|
package net.corda.nodeapi.internal.serialization.amqp
|
||||||
|
|
||||||
import org.apache.qpid.proton.codec.Data
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
@ -9,15 +8,6 @@ import kotlin.test.assertEquals
|
|||||||
// char property of the class would've been treated as an Integer and given to the constructor
|
// char property of the class would've been treated as an Integer and given to the constructor
|
||||||
// as such
|
// as such
|
||||||
class DeserializeSimpleTypesTests {
|
class DeserializeSimpleTypesTests {
|
||||||
class TestSerializationOutput(
|
|
||||||
private val verbose: Boolean,
|
|
||||||
serializerFactory: SerializerFactory = SerializerFactory()) : SerializationOutput(serializerFactory) {
|
|
||||||
|
|
||||||
override fun writeSchema(schema: Schema, data: Data) {
|
|
||||||
if (verbose) println(schema)
|
|
||||||
super.writeSchema(schema, data)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package net.corda.nodeapi.internal.serialization.carpenter
|
|||||||
|
|
||||||
import net.corda.nodeapi.internal.serialization.amqp.Field
|
import net.corda.nodeapi.internal.serialization.amqp.Field
|
||||||
import net.corda.nodeapi.internal.serialization.amqp.Schema
|
import net.corda.nodeapi.internal.serialization.amqp.Schema
|
||||||
|
import net.corda.nodeapi.internal.serialization.amqp.TypeNotation
|
||||||
import net.corda.nodeapi.internal.serialization.amqp.CompositeType
|
import net.corda.nodeapi.internal.serialization.amqp.CompositeType
|
||||||
import net.corda.nodeapi.internal.serialization.amqp.SerializerFactory
|
import net.corda.nodeapi.internal.serialization.amqp.SerializerFactory
|
||||||
import net.corda.nodeapi.internal.serialization.amqp.SerializationOutput
|
import net.corda.nodeapi.internal.serialization.amqp.SerializationOutput
|
||||||
|
Reference in New Issue
Block a user