Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adapter 2.0.4
-
None
Description
The SlingAdaptable directly uses the internal AdapterManagerImpl class to get adapter factories. This works fine in an OSGi context.
Using a SlingAdaptable within a junit test is harder, especially if one wants to use an adapter factory. This requires manual instantiation of the adaptermanager impl and some reflection tricks etc. to get the factory registered.
We should find a better way which makes writing junit tests easier.