Package io.wcm.testing.mock.wcmio.wcm
Class MockInstanceType
- java.lang.Object
-
- io.wcm.testing.mock.wcmio.wcm.MockInstanceType
-
@ProviderType public final class MockInstanceType extends java.lang.Object
Allows to set AEM instance type (author or publish) in unit test.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setAuthor(io.wcm.testing.mock.aem.context.AemContextImpl context)
Set current instance type to author instance.static void
setPublish(io.wcm.testing.mock.aem.context.AemContextImpl context)
Set current instance type to publish instance.
-
-
-
Method Detail
-
setAuthor
public static void setAuthor(io.wcm.testing.mock.aem.context.AemContextImpl context)
Set current instance type to author instance. This also sets the run mode "author".- Parameters:
context
- AEM context
-
setPublish
public static void setPublish(io.wcm.testing.mock.aem.context.AemContextImpl context)
Set current instance type to publish instance. This also sets the run mode "publish".- Parameters:
context
- AEM context
-
-