mirror of
https://github.com/corda/corda.git
synced 2025-02-20 09:26:41 +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
|
||||
public static final T createMockCordaService(net.corda.testing.node.MockServices, kotlin.jvm.functions.Function1<? super net.corda.core.node.AppServiceHub, ? extends T>)
|
||||
@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
|
||||
@NotNull
|
||||
|
@ -47,10 +47,10 @@ import java.util.*
|
||||
import java.util.function.Consumer
|
||||
import javax.persistence.EntityManager
|
||||
|
||||
/**
|
||||
* Returns a simple [InMemoryIdentityService] containing the supplied [identities].
|
||||
*/
|
||||
fun makeTestIdentityService(vararg identities: PartyAndCertificate) = InMemoryIdentityService(identities.toList(), DEV_ROOT_CA.certificate)
|
||||
/** Returns a simple [IdentityService] containing the supplied [identities]. */
|
||||
fun makeTestIdentityService(vararg identities: PartyAndCertificate): IdentityService {
|
||||
return 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user