Class MockLayerAdapterFactory

java.lang.Object
io.wcm.testing.mock.aem.MockLayerAdapterFactory
All Implemented Interfaces:
org.apache.sling.api.adapter.AdapterFactory

@ProviderType public final class MockLayerAdapterFactory extends Object implements org.apache.sling.api.adapter.AdapterFactory
Tries to adapt to an InputStream to get a Layer instance for an image binary.
  • Constructor Details

    • MockLayerAdapterFactory

      public MockLayerAdapterFactory()
  • Method Details

    • getAdapter

      @Nullable public <AdapterType> AdapterType getAdapter(@NotNull @NotNull Object object, @NotNull @NotNull Class<AdapterType> type)
      Specified by:
      getAdapter in interface org.apache.sling.api.adapter.AdapterFactory