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:
Shams Asari 2018-12-07 10:13:17 +00:00 committed by GitHub
parent 92b5900bfa
commit 991bbb9488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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