RichFaces Arquillian Test Commons 4.3.3.Final

org.richfaces.arquillian.configuration
Class FundamentalTestConfigurationContext

java.lang.Object
  extended by org.richfaces.arquillian.configuration.FundamentalTestConfigurationContext

public class FundamentalTestConfigurationContext
extends Object

Class for keeping thread local context of FundamentalTestConfiguration.

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.

Author:
Jan Papousek

Constructor Summary
FundamentalTestConfigurationContext()
           
 
Method Summary
static FundamentalTestConfiguration 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(FundamentalTestConfiguration configuration)
          Sets the configuration context for current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FundamentalTestConfigurationContext

public FundamentalTestConfigurationContext()
Method Detail

getProxy

public static FundamentalTestConfiguration getProxy()
Returns the instance of proxy to thread local context of configuration

Returns:
the instance of proxy to thread local context of configuration

isInitialized

public static boolean isInitialized()
Returns true if the context is initialized

Returns:
true if the context is initialized

reset

public static void reset()
Resets the WebDriver context for current thread


set

public static void set(FundamentalTestConfiguration configuration)
Sets the configuration context for current thread

Parameters:
configuration - the configuration instance
Throws:
IllegalArgumentException - when provided configuration instance is null

RichFaces Arquillian Test Commons 4.3.3.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.