Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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