Class DynamicComponentTest


public class DynamicComponentTest extends BaseComponentTest
  • Constructor Details

    • DynamicComponentTest

      public DynamicComponentTest(org.bloomreach.forge.brut.components.annotation.ComponentTestConfig config)
  • Method Details

    • getAnnotatedClassesResourcePath

      protected String getAnnotatedClassesResourcePath()
      Specified by:
      getAnnotatedClassesResourcePath in class AbstractRepoTest
    • getPathToTestResource

      protected String getPathToTestResource()
      Overrides:
      getPathToTestResource in class SimpleComponentTest
    • getHstRequest

      public org.hippoecm.hst.mock.core.component.MockHstRequest getHstRequest()
    • getHstResponse

      public org.hippoecm.hst.mock.core.component.MockHstResponse getHstResponse()
    • getHstRequestContext

      public org.hippoecm.hst.mock.core.request.MockHstRequestContext getHstRequestContext()
    • getResolvedSiteMapItem

      public org.hippoecm.hst.mock.core.request.MockResolvedSiteMapItem getResolvedSiteMapItem()
    • getComponentConfiguration

      public org.hippoecm.hst.mock.core.request.MockComponentConfiguration getComponentConfiguration()
    • getMockComponentManager

      public MockComponentManager getMockComponentManager()
    • getRootNode

      public Node getRootNode()
    • getRepository

      public BrxmTestingRepository getRepository()
      Overrides:
      getRepository in class BaseComponentTest
    • getSession

      public Session getSession() throws RepositoryException
      Throws:
      RepositoryException
    • getHippoBean

      public org.hippoecm.hst.content.beans.standard.HippoBean getHippoBean(String path)
      Overrides:
      getHippoBean in class AbstractRepoTest
    • setSiteContentBasePath

      public void setSiteContentBasePath(String path)
    • setContentBean

      public void setContentBean(String path)
      Overrides:
      setContentBean in class AbstractRepoTest
    • setContentBean

      public void setContentBean(org.hippoecm.hst.content.beans.standard.HippoBean bean)
    • registerNodeType

      public void registerNodeType(String nodeType) throws RepositoryException
      Overrides:
      registerNodeType in class AbstractRepoTest
      Throws:
      RepositoryException
    • registerNodeType

      public void registerNodeType(String nodeType, String superType) throws RepositoryException
      Overrides:
      registerNodeType in class AbstractRepoTest
      Throws:
      RepositoryException
    • registerMixinType

      public void registerMixinType(String mixinType) throws RepositoryException
      Overrides:
      registerMixinType in class AbstractRepoTest
      Throws:
      RepositoryException
    • recalculateRepositoryPaths

      public void recalculateRepositoryPaths()
    • addRequestParameter

      public void addRequestParameter(String name, String value)
    • addRequestParameter

      public void addRequestParameter(String name, String[] value)
    • getRequestAttributeValue

      public <T> T getRequestAttributeValue(String name)
    • setComponentParameters

      public void setComponentParameters(Object parameterInfo)
    • registerNodeTypes

      public void registerNodeTypes(String... nodeTypes)
      Register multiple node types at once. Wraps RepositoryException in SetupTeardownException for cleaner test code.
      Parameters:
      nodeTypes - varargs of node type names (e.g., "myproject:Article", "myproject:Author")
    • registerNodeTypeWithSupertype

      public void registerNodeTypeWithSupertype(String nodeType, String superType)
      Register a node type with a specified supertype. Wraps RepositoryException in SetupTeardownException for cleaner test code.
      Parameters:
      nodeType - the node type to register (e.g., "myproject:Article")
      superType - the supertype for inheritance (e.g., "myproject:BaseDocument")
    • importYaml

      public void importYaml(String resourcePath, String targetPath)
      Import stubbed YAML content into the repository. Uses "hippostd:folder" as the default folder type.
      Parameters:
      resourcePath - classpath resource path (e.g., "/test-content.yaml")
      targetPath - target path in repository (e.g., "/content/documents")
    • importYaml

      public void importYaml(String resourcePath, String targetPath, String folderType)
      Import YAML content into the repository with custom folder type.
      Parameters:
      resourcePath - classpath resource path (e.g., "/test-content.yaml")
      targetPath - target path in repository (e.g., "/content/documents")
      folderType - JCR node type for folders (e.g., "hippostd:folder")
    • importYaml

      public void importYaml(String resourcePath, String targetPath, String folderType, Class<?> resourceClass)
      Import YAML content into the repository using a specific class's classloader.
      Parameters:
      resourcePath - classpath resource path (e.g., "/test-content.yaml")
      targetPath - target path in repository (e.g., "/content/documents")
      folderType - JCR node type for folders (e.g., "hippostd:folder")
      resourceClass - class to use for resource loading