Adapter vs Adaptables w.r.t request.adaptTo(Interface.class)
Hi Team ,
We have a use -case where in we are using OOTB socialMediahelper.java and socialMediaHelperImpl.java with 1-2 additional fields in it.
So we have used the same logic on our project. functionality works fine.
But when it comes to its Junits . its fails to request.adaptTo(socialMediahelper.java).
All the time it gives null.
-> I debugged it and see adapter and adaptable is getAdapter(adaptable,type) it fails.
final Map<String ,List<AdapterFactoryDescription>> factories = getAdapterFactories(adaptable.getClass());
factories.get(type.getName)); this is giving null and at code print
log.debug("No Adapter factory found to map {} to {}, adaptable is slinghttprequest, and type is interface SocialMediaHelper..
Same Code as in complete OOTB when I check it works in vanilla instance.
What am I missing here.. what should give as adapter and adaptable to make this succesfull request.adapTo(SocialMediaHelper.class)
Please help on this ..
