spring-framework / org.springframework.mock.jndi / ExpectedLookupTemplate / <init>

<init>

ExpectedLookupTemplate()

Construct a new JndiTemplate that will always return given objects for given names. To be populated through addObject calls.

See Also
#addObject(String, Object)

ExpectedLookupTemplate(name: String, object: Any)

Construct a new JndiTemplate that will always return the given object, but honour only requests for the given name.

Parameters

name - the name the client is expected to look up

object - the object that will be returned