public final class InjectingTestedProducts extends Object
TestedProducts abilities to inject dependencies.| Modifier and Type | Method and Description |
|---|---|
static ConfigurableInjectionContext |
asConfigurableInjectionContext(TestedProduct<?> product)
Returns configurable injection context associated with given product.
|
static InjectionContext |
asInjectionContext(TestedProduct<?> product)
Returns injection context associated with given product.
|
static boolean |
supportsConfigurableInjection(TestedProduct<?> product)
Checks whether given product supports injection.
|
static boolean |
supportsInjection(TestedProduct<?> product)
Checks whether given product supports injection.
|
public static boolean supportsInjection(TestedProduct<?> product)
InjectionContext.product - product to verifytrue if product supports injectionpublic static boolean supportsConfigurableInjection(TestedProduct<?> product)
ConfigurableInjectionContext.product - product to verifytrue if product supports configurable injectionpublic static InjectionContext asInjectionContext(TestedProduct<?> product)
product - product to retrieve context fromIllegalArgumentException - if the product is not providing injection (which can be verified by
calling supportsInjection(com.atlassian.pageobjects.TestedProduct)public static ConfigurableInjectionContext asConfigurableInjectionContext(TestedProduct<?> product)
product - product to retrieve context fromIllegalArgumentException - if the product is not providing configurable injection (which can be verified by
calling supportsConfigurableInjection(com.atlassian.pageobjects.TestedProduct).Copyright © 2015 Atlassian. All rights reserved.