public class GrapheneConfigurationContext extends Object
Class for keeping thread local context of GrapheneConfiguration.
Provides getProxy() method for accessing that context in model of your tests.
Proxy specifically handles the situations when no context is set - in this situation, runtime exception with NullPointerException cause is thrown.
| Constructor and Description |
|---|
GrapheneConfigurationContext() |
| Modifier and Type | Method and Description |
|---|---|
static GrapheneConfiguration |
getProxy()
Returns the instance of proxy to thread local context of configuration
|
static boolean |
isInitialized()
Returns true if the context is initialized
|
static void |
reset()
Resets the WebDriver context for current thread
|
static void |
set(GrapheneConfiguration configuration)
Sets the configuration context for current thread
|
public static GrapheneConfiguration getProxy()
public static boolean isInitialized()
public static void reset()
public static void set(GrapheneConfiguration configuration)
configuration - the configuration instanceIllegalArgumentException - when provided configuration instance is nullCopyright © 2012 JBoss by Red Hat. All Rights Reserved.