You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MockAsset extends ResourceWrapper and implements Asset.
The adaptTo-method is overwritten with a simple check to return the correct resource, but adapting to other types goes to ResourceWrapper#adaptTo, which uses the wrapped Resource to do the adaption. In the end, this means that the wrapped Resource will always end up in the AdapterFactory, and not the Asset itself.
The text was updated successfully, but these errors were encountered:
MockAsset
extendsResourceWrapper
and implementsAsset
.The
adaptTo
-method is overwritten with a simple check to return the correct resource, but adapting to other types goes toResourceWrapper#adaptTo
, which uses the wrappedResource
to do the adaption. In the end, this means that the wrappedResource
will always end up in theAdapterFactory
, and not theAsset
itself.The text was updated successfully, but these errors were encountered: