@ProviderType public final class MockCAConfig extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
contextPathStrategyAbsoluteParent(@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
int... levels)
Register
ContextPathStrategy that supports one or multiple fixed levels in content hierarchy where
configurations are supported. |
static void |
contextPathStrategyRootTemplate(@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
String... templatePaths)
Register
ContextPathStrategy that detects context paths by matching parent pages against a list of allowed
templates for context root. |
static void |
writeConfiguration(@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
@NotNull String contextPath,
@NotNull String configName,
@NotNull Map<String,Object> values)
Deprecated.
Please use
MockContextAwareConfig.writeConfiguration(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Map) |
static void |
writeConfiguration(@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
@NotNull String contextPath,
@NotNull String configName,
Object... values)
Deprecated.
Please use
MockContextAwareConfig.writeConfiguration(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Object[]) |
static void |
writeConfigurationCollection(@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
@NotNull String contextPath,
@NotNull String configName,
@NotNull Collection<Map<String,Object>> values)
Deprecated.
Please use
MockContextAwareConfig.writeConfigurationCollection(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Collection) |
public static void contextPathStrategyAbsoluteParent(@NotNull
@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
int... levels)
ContextPathStrategy that supports one or multiple fixed levels in content hierarchy where
configurations are supported.context - AEM contextlevels - List of absolute levels where configuration is supported.
Levels are used in the same way as Text.getAbsoluteParent(String, int).
Example:Text.getAbsoluteParent("/foo/bar/test", 1) == "/foo/bar"public static void contextPathStrategyRootTemplate(@NotNull
@NotNull io.wcm.testing.mock.aem.context.AemContextImpl context,
String... templatePaths)
ContextPathStrategy that detects context paths by matching parent pages against a list of allowed
templates for context root.context - AEM contexttemplatePaths - List of template paths allowed for context root pages.@Deprecated public static void writeConfiguration(@NotNull @NotNull io.wcm.testing.mock.aem.context.AemContextImpl context, @NotNull @NotNull String contextPath, @NotNull @NotNull String configName, @NotNull @NotNull Map<String,Object> values)
MockContextAwareConfig.writeConfiguration(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Map)context - AEM contextcontextPath - Configuration idconfigName - Config namevalues - Configuration values@Deprecated public static void writeConfiguration(@NotNull @NotNull io.wcm.testing.mock.aem.context.AemContextImpl context, @NotNull @NotNull String contextPath, @NotNull @NotNull String configName, @NotNull Object... values)
MockContextAwareConfig.writeConfiguration(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Object[])context - AEM contextcontextPath - Configuration idconfigName - Config namevalues - Configuration values@Deprecated public static void writeConfigurationCollection(@NotNull @NotNull io.wcm.testing.mock.aem.context.AemContextImpl context, @NotNull @NotNull String contextPath, @NotNull @NotNull String configName, @NotNull @NotNull Collection<Map<String,Object>> values)
MockContextAwareConfig.writeConfigurationCollection(org.apache.sling.testing.mock.sling.context.SlingContextImpl, String, String, Collection)context - AEM contextcontextPath - Configuration idconfigName - Config namevalues - Configuration valuesCopyright © 2014–2018 wcm.io. All rights reserved.