org.nakedobjects.runtime.persistence.adaptermanager
Interface AdapterManagerTestSupport

All Known Subinterfaces:
AdapterManagerExtended
All Known Implementing Classes:
AdapterManagerAbstract, AdapterManagerDefault

public interface AdapterManagerTestSupport


Method Summary
 NakedObject testCreateTransient(java.lang.Object pojo, Oid oid)
          For testing purposes, creates an adapter for the supplied domain object with the specified Oid.
 

Method Detail

testCreateTransient

NakedObject testCreateTransient(java.lang.Object pojo,
                                Oid oid)
For testing purposes, creates an adapter for the supplied domain object with the specified Oid.

The usual way of creating adapters is using #adapterFor(Object), using the OidGenerator to obtain an Oid. This test-support method differs because it allows the Oid to be specified explicitly.

Note that the Oid must represent a transient object. If an adapter is required for a persistent Oid, just use #recreateRootAdapter(Object, Oid).

See Also:
#adapterFor(Object), #recreateRootAdapter(Object, Oid)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.