Package | Description |
---|---|
io.wcm.testing.mock.aem.junit |
Rule for providing easy access to AEM context in JUnit tests.
|
org.apache.sling.testing.mock.osgi.context |
OSGi context implementation for unit tests.
|
org.apache.sling.testing.mock.osgi.junit |
Rule for providing easy access to OSGi context in JUnit tests.
|
org.apache.sling.testing.mock.sling.junit |
Rule for providing easy access to Sling context in JUnit tests.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AemContextCallback
Callback interface for application-specific setup and teardown operations to customize the
AemContext JUnit rule. |
Modifier and Type | Method and Description |
---|---|
<T extends OsgiContextImpl> |
AemContextBuilder.afterSetUp(ContextCallback<T>... afterSetUpCallback) |
<T extends OsgiContextImpl> |
AemContextBuilder.afterTearDown(ContextCallback<T>... afterTearDownCallback) |
<T extends OsgiContextImpl> |
AemContextBuilder.beforeSetUp(ContextCallback<T>... beforeSetUpCallback) |
<T extends OsgiContextImpl> |
AemContextBuilder.beforeTearDown(ContextCallback<T>... beforeTearDownCallback) |
Constructor and Description |
---|
AemContext(@NotNull ContextCallback<T> afterSetUpCallback,
ResourceResolverType... resourceResolverTypes)
Initialize AEM context.
|
AemContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback,
ResourceResolverType... resourceResolverTypes)
Initialize AEM context.
|
AemContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback,
ResourceResolverType... resourceResolverTypes)
Initialize AEM context.
|
Modifier and Type | Method and Description |
---|---|
<T extends OsgiContextImpl> |
ContextPlugins.addAfterSetUpCallback(ContextCallback<T>... afterSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addAfterTearDownCallback(ContextCallback<T>... afterTearDownCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addBeforeSetUpCallback(ContextCallback<T>... beforeSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
ContextPlugins.addBeforeTearDownCallback(ContextCallback<T>... beforeTearDownCallback)
Add callback
|
Constructor and Description |
---|
ContextPlugins(@NotNull ContextCallback<T> afterSetUpCallback)
Start with some callbacks.
|
ContextPlugins(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Start with some callbacks.
|
ContextPlugins(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Start with some callbacks.
|
Modifier and Type | Interface and Description |
---|---|
interface |
OsgiContextCallback
Callback interface for application-specific setup and teardown operations to
customize the
OsgiContext JUnit rule. |
Modifier and Type | Method and Description |
---|---|
<T extends OsgiContextImpl> |
OsgiContextBuilder.afterSetUp(ContextCallback<T>... afterSetUpCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.afterTearDown(ContextCallback<T>... afterTearDownCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.beforeSetUp(ContextCallback<T>... beforeSetUpCallback) |
<T extends OsgiContextImpl> |
OsgiContextBuilder.beforeTearDown(ContextCallback<T>... beforeTearDownCallback) |
Constructor and Description |
---|
OsgiContext(@NotNull ContextCallback<T> afterSetUpCallback)
Initialize OSGi context.
|
OsgiContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
OsgiContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SlingContextCallback
Callback interface for application-specific setup and teardown operations to
customize the
SlingContext JUnit rule. |
Modifier and Type | Method and Description |
---|---|
<T extends OsgiContextImpl> |
SlingContextBuilder.afterSetUp(ContextCallback<T>... afterSetUpCallback) |
<T extends OsgiContextImpl> |
SlingContextBuilder.afterTearDown(ContextCallback<T>... afterTearDownCallback) |
<T extends OsgiContextImpl> |
SlingContextBuilder.beforeSetUp(ContextCallback<T>... beforeSetUpCallback) |
<T extends OsgiContextImpl> |
SlingContextBuilder.beforeTearDown(ContextCallback<T>... beforeTearDownCallback) |
Constructor and Description |
---|
SlingContext(@NotNull ContextCallback<T> afterSetUpCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE . |
SlingContext(@NotNull ContextCallback<T> afterSetUpCallback,
@NotNull ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE . |
SlingContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE . |
SlingContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback,
@NotNull ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback,
@NotNull ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
Copyright © 2014–2021 wcm.io. All rights reserved.