You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Amit.. Gupta." <am...@adobe.com> on 2013/05/06 09:42:06 UTC

question on using SlingTestHelper

Hi
I am using SlingTestHelper as below

SlingTestHelper.registerAdapterFactory(
                        rcFactory,
                        ResourceCollectionAdapterFactory.ADAPTABLE_CLASSES,
                        ResourceCollectionAdapterFactory.ADAPTER_CLASSES
        );


SlingTestHelper.registerAdapterFactory(
                factory,
                AssetAdapterFactory.ADAPTABLE_CLASSES,
                AssetAdapterFactory.ADAPTER_CLASSES
        );


Only one of the factory gets registered, last one wins. Seems to be an issue with AdapterManagerTestHelper.

Regards,
Amit