CORDA-1789 - Split Doorman / NM config - fix for CORDA-1510 (#3605)

This commit is contained in:
Katelyn Baker 2018-07-17 15:11:31 +01:00 committed by GitHub
parent 729d1b29a6
commit f44cec5321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 13 deletions

View File

@ -1,8 +1,7 @@
package net.corda.serialization.internal.amqp;
package net.corda.nodeapi.internal.serialization.amqp;
import net.corda.core.serialization.SerializationCustomSerializer;
import net.corda.serialization.internal.AllWhitelist;
import net.corda.serialization.internal.amqp.testutils.TestSerializationContext;
import net.corda.nodeapi.internal.serialization.AllWhitelist;
import org.junit.Test;
import java.io.NotSerializableException;
@ -87,10 +86,12 @@ public class JavaCustomSerializerTests {
}
@Test
public void serializeExample() throws NotSerializableException, NoSuchFieldException, IllegalAccessException {
SerializerFactory factory = new SerializerFactory(AllWhitelist.INSTANCE, ClassLoader.getSystemClassLoader(),
new EvolutionSerializerGetter(),
new SerializerFingerPrinter());
public void serializeExample() throws NotSerializableException {
SerializerFactory factory = new SerializerFactory(
AllWhitelist.INSTANCE,
ClassLoader.getSystemClassLoader(),
new EvolutionSerializerGetter());
SerializationOutput ser = new SerializationOutput(factory);
List<Integer> l = new ArrayList<Integer>(2);
@ -101,8 +102,6 @@ public class JavaCustomSerializerTests {
CorDappCustomSerializer ccs = new CorDappCustomSerializer(new ExampleSerializer(), factory);
factory.registerExternal(ccs);
ser.serialize(e, TestSerializationContext.testSerializationContext);
ser.serialize(e);
}
}

View File

@ -194,9 +194,7 @@ open class NodeStartup(val args: Array<String>) {
}
open protected fun registerWithNetwork(conf: NodeConfiguration, nodeRegistrationConfig: NodeRegistrationOption) {
val compatibilityZoneURL = conf.networkServices?.doormanURL ?: throw RuntimeException(
"compatibilityZoneURL or networkServices must be configured!")
val compatibilityZoneURL = conf.networkServices!!.doormanURL
println()
println("******************************************************************")
println("* *")