mirror of
https://github.com/corda/corda.git
synced 2025-06-02 07:30:53 +00:00
CORDA-2128: makeTestIdentityService no longer declared to return internal InMemoryIdentityService (#4333)
While technically a break in the test API, it has no practical implications as InMemoryIdentityService does not provide any extra APIs.
This commit is contained in:
parent
92b5900bfa
commit
991bbb9488
@ -6454,7 +6454,7 @@ public final class net.corda.testing.node.MockServicesKt extends java.lang.Objec
|
|||||||
@NotNull
|
@NotNull
|
||||||
public static final T createMockCordaService(net.corda.testing.node.MockServices, kotlin.jvm.functions.Function1<? super net.corda.core.node.AppServiceHub, ? extends T>)
|
public static final T createMockCordaService(net.corda.testing.node.MockServices, kotlin.jvm.functions.Function1<? super net.corda.core.node.AppServiceHub, ? extends T>)
|
||||||
@NotNull
|
@NotNull
|
||||||
public static final net.corda.node.services.identity.InMemoryIdentityService makeTestIdentityService(net.corda.core.identity.PartyAndCertificate...)
|
public static final net.corda.core.node.services.IdentityService makeTestIdentityService(net.corda.core.identity.PartyAndCertificate...)
|
||||||
##
|
##
|
||||||
public final class net.corda.testing.node.NodeTestUtils extends java.lang.Object
|
public final class net.corda.testing.node.NodeTestUtils extends java.lang.Object
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@ -47,10 +47,10 @@ import java.util.*
|
|||||||
import java.util.function.Consumer
|
import java.util.function.Consumer
|
||||||
import javax.persistence.EntityManager
|
import javax.persistence.EntityManager
|
||||||
|
|
||||||
/**
|
/** Returns a simple [IdentityService] containing the supplied [identities]. */
|
||||||
* Returns a simple [InMemoryIdentityService] containing the supplied [identities].
|
fun makeTestIdentityService(vararg identities: PartyAndCertificate): IdentityService {
|
||||||
*/
|
return InMemoryIdentityService(identities.toList(), DEV_ROOT_CA.certificate)
|
||||||
fun makeTestIdentityService(vararg identities: PartyAndCertificate) = InMemoryIdentityService(identities.toList(), DEV_ROOT_CA.certificate)
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An implementation of [ServiceHub] that is designed for in-memory unit tests of contract validation logic. It has
|
* An implementation of [ServiceHub] that is designed for in-memory unit tests of contract validation logic. It has
|
||||||
|
Loading…
x
Reference in New Issue
Block a user