mirror of
https://github.com/corda/corda.git
synced 2025-01-20 03:36:29 +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:
parent
1f9c04544d
commit
4d6230f22c
@ -97,7 +97,6 @@ class MetaCarpenter(schemas : CarpenterSchemas,
|
||||
}
|
||||
}
|
||||
|
||||
class TestMetaCarpenter(schemas: CarpenterSchemas) : MetaCarpenterBase(schemas) {
|
||||
class TestMetaCarpenter(schemas : CarpenterSchemas,
|
||||
cc : ClassCarpenter = ClassCarpenter()) : MetaCarpenterBase(schemas, cc) {
|
||||
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 net.corda.core.serialization.amqp.Schema
|
||||
import net.corda.core.serialization.amqp.SerializerFactory
|
||||
import net.corda.core.serialization.amqp.SerializationOutput
|
||||
|
||||
class TestSerializationOutput(
|
||||
private val verbose: Boolean,
|
@ -8,6 +8,7 @@ import kotlin.test.assertTrue
|
||||
class DeserializeAndReturnEnvelopeTests {
|
||||
|
||||
fun testName(): String = Thread.currentThread().stackTrace[2].methodName
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
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 kotlin.test.*
|
||||
import net.corda.core.serialization.carpenter.*
|
||||
import net.corda.core.serialization.amqp.test.TestSerializationOutput
|
||||
import net.corda.nodeapi.internal.serialization.carpenter.*
|
||||
|
||||
/**
|
||||
* 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 kotlin.test.*
|
||||
import net.corda.core.serialization.carpenter.*
|
||||
import net.corda.core.serialization.amqp.test.TestSerializationOutput
|
||||
import net.corda.nodeapi.internal.serialization.carpenter.*
|
||||
|
||||
interface I {
|
||||
fun getName() : String
|
||||
|
@ -1,6 +1,5 @@
|
||||
package net.corda.nodeapi.internal.serialization.amqp
|
||||
|
||||
import org.apache.qpid.proton.codec.Data
|
||||
import org.junit.Test
|
||||
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
|
||||
// as such
|
||||
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 {
|
||||
/**
|
||||
|
@ -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.Schema
|
||||
import net.corda.nodeapi.internal.serialization.amqp.TypeNotation
|
||||
import net.corda.nodeapi.internal.serialization.amqp.CompositeType
|
||||
import net.corda.nodeapi.internal.serialization.amqp.SerializerFactory
|
||||
import net.corda.nodeapi.internal.serialization.amqp.SerializationOutput
|
||||
|
Loading…
Reference in New Issue
Block a user