public class FacesConfiguratorDefaultValidatorsTestCase extends org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
Constructor and Description |
---|
FacesConfiguratorDefaultValidatorsTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
setFactories() |
void |
setUp() |
void |
tearDown() |
void |
testBeanValidationNotAvailable()
Tests the case that bean validation is not available in the classpath.
|
void |
testDefaultBeanValidatorDisabled()
Tests the case when bean validation is available, but adding the BeanValidator
as a default validator has been disabled via the config parameter and there
is no faces-config file that would install it manually.
|
void |
testDefaultBeanValidatorDisabledButPresentInFacesConfig()
Tests the case that the default bean validator is disabled with the config parameter
javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR, but it is defined in the faces-config.
|
void |
testDefaultValidatorsClearedByLatterConfigFileWithEmptyElement()
Tests the case with two config files.
|
void |
testDefaultValidatorsNotClearedByLatterConfigFileWithNoElement()
Tests the case with two config files.
|
void |
testDefaultValidatorsOverwrittenByLatterConfigFile()
Tests the case with two config files.
|
setUpApplication, setUpClassloader, setUpExternalContext, setUpFacesContext, setUpJSFObjects, setUpLifecycle, setUpRenderKit, setUpServletObjects, setUpView, tearDownClassloader
public FacesConfiguratorDefaultValidatorsTestCase()
public void setUp() throws Exception
setUp
in class org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
Exception
public void tearDown() throws Exception
tearDown
in class org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
Exception
public void setFactories() throws Exception
setFactories
in class org.apache.myfaces.test.base.junit4.AbstractJsfConfigurableMockTestCase
Exception
public void testDefaultBeanValidatorDisabledButPresentInFacesConfig()
public void testDefaultBeanValidatorDisabled()
public void testBeanValidationNotAvailable()
public void testDefaultValidatorsClearedByLatterConfigFileWithEmptyElement()
public void testDefaultValidatorsNotClearedByLatterConfigFileWithNoElement()
public void testDefaultValidatorsOverwrittenByLatterConfigFile()
Copyright © 2020 The Apache Software Foundation. All rights reserved.