public class SpringTestHelper extends Object
Constructor and Description |
---|
SpringTestHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanContainerContext()
To be used only in TestNG tests when SpringContextRule can't be used.
|
static void |
mockContainerContext()
To be used only in TestNG tests when SpringContextRule can't be used.
|
static <T> T |
mockSpringComponent(String componentKey,
Class<T> componentClass)
Mock a component that could be accessed by ComponentAccessor or ContainerManager.
|
static void |
mockSpringComponent(String componentKey,
Object componentInstance)
Mock a component that could be accessed by ComponentAccessor or ContainerManager.
|
public static void mockContainerContext()
cleanContainerContext()
.public static void cleanContainerContext()
public static <T> T mockSpringComponent(@NotNull String componentKey, @NotNull Class<T> componentClass)
componentKey
- key of the componentcomponentClass
- class of componentCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.