Maintain API stability for MockNetworkNotarySpec constructor

This commit is contained in:
Matthijs van den Bos 2019-07-14 09:52:00 +02:00 committed by Mike Hearn
parent 100457afc0
commit 164079e3a2

View File

@ -125,9 +125,7 @@ data class MockNetworkParameters(
* @property validating Boolean for whether the notary is validating or non-validating. * @property validating Boolean for whether the notary is validating or non-validating.
* @property className String the optional name of a notary service class to load. If null, a builtin notary is loaded. * @property className String the optional name of a notary service class to load. If null, a builtin notary is loaded.
*/ */
data class MockNetworkNotarySpec(val name: CordaX500Name, val validating: Boolean = true, val className: String? = null) { data class MockNetworkNotarySpec @JvmOverloads constructor(val name: CordaX500Name, val validating: Boolean = true, val className: String? = null)
constructor(name: CordaX500Name) : this(name, validating = true)
}
/** A class that represents an unstarted mock node for testing. */ /** A class that represents an unstarted mock node for testing. */
class UnstartedMockNode private constructor(private val node: InternalMockNetwork.MockNode) { class UnstartedMockNode private constructor(private val node: InternalMockNetwork.MockNode) {