Package io.wcm.testing.mock.aem
Class MockExternalizer
java.lang.Object
io.wcm.testing.mock.aem.MockExternalizer
- All Implemented Interfaces:
com.day.cq.commons.Externalizer
Mock implementation of
Externalizer.-
Field Summary
Fields inherited from interface com.day.cq.commons.Externalizer
AUTHOR, LOCAL, PUBLISH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsoluteLink(String scheme, String path) absoluteLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) absoluteLink(org.apache.sling.api.SlingHttpServletRequest request, String scheme, String path) authorLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) authorLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) externalLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String domain, String path) externalLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String domain, String scheme, String path) publishLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) publishLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) relativeLink(org.apache.sling.api.SlingHttpServletRequest request, String path) voidsetMapping(String domain, String domainURI) Allows to set a custom domain mapping for the unit test.
-
Constructor Details
-
MockExternalizer
public MockExternalizer()Constructor
-
-
Method Details
-
setMapping
Allows to set a custom domain mapping for the unit test.- Parameters:
domain- DomaindomainURI- Domain URI
-
externalLink
public String externalLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String domain, String path) - Specified by:
externalLinkin interfacecom.day.cq.commons.Externalizer
-
externalLink
public String externalLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String domain, String scheme, String path) - Specified by:
externalLinkin interfacecom.day.cq.commons.Externalizer
-
authorLink
public String authorLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) - Specified by:
authorLinkin interfacecom.day.cq.commons.Externalizer
-
authorLink
public String authorLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) - Specified by:
authorLinkin interfacecom.day.cq.commons.Externalizer
-
publishLink
public String publishLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) - Specified by:
publishLinkin interfacecom.day.cq.commons.Externalizer
-
publishLink
public String publishLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) - Specified by:
publishLinkin interfacecom.day.cq.commons.Externalizer
-
absoluteLink
public String absoluteLink(org.apache.sling.api.resource.ResourceResolver resourceResolver, String scheme, String path) - Specified by:
absoluteLinkin interfacecom.day.cq.commons.Externalizer
-
absoluteLink
public String absoluteLink(org.apache.sling.api.SlingHttpServletRequest request, String scheme, String path) - Specified by:
absoluteLinkin interfacecom.day.cq.commons.Externalizer
-
absoluteLink
- Specified by:
absoluteLinkin interfacecom.day.cq.commons.Externalizer
-
relativeLink
- Specified by:
relativeLinkin interfacecom.day.cq.commons.Externalizer
-