Package de.cuioss.test.jsf.defaults
Class BasicApplicationConfiguration
- java.lang.Object
-
- de.cuioss.test.jsf.defaults.BasicApplicationConfiguration
-
- All Implemented Interfaces:
ApplicationConfigurator,JsfTestContextConfigurator,RequestConfigurator
public class BasicApplicationConfiguration extends Object implements ApplicationConfigurator, RequestConfigurator
Provides some default configuration for the tests. The defaults are:- Setting the supported locales to
Locale.ENGLISHandLocale.GERMANY - Setting the default locale to
Locale.ENGLISH - Setting the user-agent to "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"
- Author:
- Oliver Wolff
-
-
Field Summary
Fields Modifier and Type Field Description static LocaleDEFAULT_LOCALEThe defaultLocalestatic StringFIREFOXFirefox user-agentstatic Collection<Locale>SUPPORTED_LOCALESThe supportedLocalesstatic StringUSER_AGENTUser-agent identifier.
-
Constructor Summary
Constructors Constructor Description BasicApplicationConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureApplication(ApplicationConfigDecorator config)Callback method for interacting with theApplicationConfigDecoratorat the correct time.voidconfigureRequest(RequestConfigDecorator decorator)Callback method for interacting with theRequestConfigDecoratorat the correct time.
-
-
-
Field Detail
-
FIREFOX
public static final String FIREFOX
Firefox user-agent- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
User-agent identifier.- See Also:
- Constant Field Values
-
SUPPORTED_LOCALES
public static final Collection<Locale> SUPPORTED_LOCALES
The supportedLocales
-
DEFAULT_LOCALE
public static final Locale DEFAULT_LOCALE
The defaultLocale
-
-
Constructor Detail
-
BasicApplicationConfiguration
public BasicApplicationConfiguration()
-
-
Method Detail
-
configureApplication
public void configureApplication(ApplicationConfigDecorator config)
Description copied from interface:ApplicationConfiguratorCallback method for interacting with theApplicationConfigDecoratorat the correct time.- Specified by:
configureApplicationin interfaceApplicationConfigurator- Parameters:
config- is never null
-
configureRequest
public void configureRequest(RequestConfigDecorator decorator)
Description copied from interface:RequestConfiguratorCallback method for interacting with theRequestConfigDecoratorat the correct time.- Specified by:
configureRequestin interfaceRequestConfigurator- Parameters:
decorator- is never null
-
-