Class DynamicComponentTest
java.lang.Object
org.bloomreach.forge.brut.components.SimpleComponentTest
org.bloomreach.forge.brut.components.AbstractRepoTest
org.bloomreach.forge.brut.components.BaseComponentTest
org.bloomreach.forge.brut.components.annotation.DynamicComponentTest
-
Field Summary
Fields inherited from class org.bloomreach.forge.brut.components.BaseComponentTest
ADMINFields inherited from class org.bloomreach.forge.brut.components.AbstractRepoTest
hstQueryManager, objectBeanManager, objectConverter, rootNodeFields inherited from class org.bloomreach.forge.brut.components.SimpleComponentTest
COMPONENT_REFERENCE_NAMESPACE, componentConfiguration, componentManager, containerConfiguration, hstLinkCreator, mount, request, requestContext, resolvedMount, resolvedSiteMapItem, response -
Constructor Summary
ConstructorsConstructorDescriptionDynamicComponentTest(org.bloomreach.forge.brut.components.annotation.ComponentTestConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestParameter(String name, String value) voidaddRequestParameter(String name, String[] value) protected Stringorg.hippoecm.hst.mock.core.request.MockComponentConfigurationorg.hippoecm.hst.content.beans.standard.HippoBeangetHippoBean(String path) org.hippoecm.hst.mock.core.component.MockHstRequestorg.hippoecm.hst.mock.core.request.MockHstRequestContextorg.hippoecm.hst.mock.core.component.MockHstResponseprotected String<T> Torg.hippoecm.hst.mock.core.request.MockResolvedSiteMapItemvoidimportYaml(String resourcePath, String targetPath) Import stubbed YAML content into the repository.voidimportYaml(String resourcePath, String targetPath, String folderType) Import YAML content into the repository with custom folder type.voidimportYaml(String resourcePath, String targetPath, String folderType, Class<?> resourceClass) Import YAML content into the repository using a specific class's classloader.voidvoidregisterMixinType(String mixinType) voidregisterNodeType(String nodeType) voidregisterNodeType(String nodeType, String superType) voidregisterNodeTypes(String... nodeTypes) Register multiple node types at once.voidregisterNodeTypeWithSupertype(String nodeType, String superType) Register a node type with a specified supertype.voidsetComponentParameters(Object parameterInfo) voidsetContentBean(String path) voidsetContentBean(org.hippoecm.hst.content.beans.standard.HippoBean bean) voidsetSiteContentBasePath(String path) Methods inherited from class org.bloomreach.forge.brut.components.BaseComponentTest
getWritableCredentials, setRepository, setup, shouldImportNodeStructure, shouldRegisterBaseNodeTypes, teardownMethods inherited from class org.bloomreach.forge.brut.components.AbstractRepoTest
autoResolveSiteContentBase, getRelativeBean, getRelativeBean, getResourceAsStream, getSiteContentBaseBeanOrNull, hasSiteContentBaseBean, printNodeStructure, printNodeStructure, recalculateHippoPaths, recalculateHippoPaths, recalculateHippoPaths, registerBaseNodeTypes, requireSiteContentBaseBean, setObjectConverter, setSiteContentBaseMethods inherited from class org.bloomreach.forge.brut.components.SimpleComponentTest
addPublicRequestParameter, addPublicRequestParameter, getComponentReferenceNamespace, getRequestAttribute, setChannelInfo, setComponentManager, setComponentParameterInfo
-
Constructor Details
-
DynamicComponentTest
public DynamicComponentTest(org.bloomreach.forge.brut.components.annotation.ComponentTestConfig config)
-
-
Method Details
-
getAnnotatedClassesResourcePath
- Specified by:
getAnnotatedClassesResourcePathin classAbstractRepoTest
-
getPathToTestResource
- Overrides:
getPathToTestResourcein classSimpleComponentTest
-
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
-
getRootNode
-
getRepository
- Overrides:
getRepositoryin classBaseComponentTest
-
getSession
- Throws:
RepositoryException
-
getHippoBean
- Overrides:
getHippoBeanin classAbstractRepoTest
-
setSiteContentBasePath
-
setContentBean
- Overrides:
setContentBeanin classAbstractRepoTest
-
setContentBean
public void setContentBean(org.hippoecm.hst.content.beans.standard.HippoBean bean) -
registerNodeType
- Overrides:
registerNodeTypein classAbstractRepoTest- Throws:
RepositoryException
-
registerNodeType
- Overrides:
registerNodeTypein classAbstractRepoTest- Throws:
RepositoryException
-
registerMixinType
- Overrides:
registerMixinTypein classAbstractRepoTest- Throws:
RepositoryException
-
recalculateRepositoryPaths
public void recalculateRepositoryPaths() -
addRequestParameter
-
addRequestParameter
-
getRequestAttributeValue
-
setComponentParameters
-
registerNodeTypes
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
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
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
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
-