public class FacesConfiguratorDefaultValidatorsTestCase extends org.apache.myfaces.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
Constructor and Description |
---|
FacesConfiguratorDefaultValidatorsTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected 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.
|
setFactories, setUpApplication, setUpExternalContext, setUpFacesContext, setUpJSFObjects, setUpLifecycle, setUpRenderKit, setUpServletObjects, setUpView
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
public FacesConfiguratorDefaultValidatorsTestCase(String name)
protected void setUp() throws Exception
setUp
in class org.apache.myfaces.test.base.AbstractJsfTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.apache.myfaces.test.base.AbstractJsfTestCase
Exception
public void testDefaultBeanValidatorDisabledButPresentInFacesConfig()
public void testDefaultBeanValidatorDisabled()
public void testBeanValidationNotAvailable()
public void testDefaultValidatorsClearedByLatterConfigFileWithEmptyElement()
public void testDefaultValidatorsNotClearedByLatterConfigFileWithNoElement()
public void testDefaultValidatorsOverwrittenByLatterConfigFile()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.