public class ValidateBeanTestCase extends FaceletTestCase
dispenser, vdl
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
Constructor and Description |
---|
ValidateBeanTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
testBeanValidatorInstalledAutomatically()
Tests the case that the UIInput has no nested
|
void |
testBeanValidatorInstalledManually()
Tests the case that the BeanValidator is not a default validator,
but the UIInput has a
|
void |
testDisabledBeanValidatorNotInstalled()
Tests the case that the BeanValidator is a default validator, but the
UIInput has a nested
|
void |
testNestingValidateBean()
Tests the case when
|
void |
testNestingValidateBeanDisabled()
Tests the case when
|
void |
testValidateBeanDefaultValidationGroup()
Tests the case that the BeanValidator is a default validator and the
UIInput on the facelet does not have a custom
|
void |
testValidateBeanDisabledAndEnabled()
Tests the case that there are two
|
void |
testValidateBeanNestingAndNested()
Tests the case that there are a wrapping f:validateBean with disabled
set to true and one nested f:validateBean.
|
void |
testValidateBeanValidationDisabledDoubleNesting() |
void |
testValidateBeanValidationGroups()
Tests if the validationGroups are set correctly.
|
void |
testValidateBeanValidationGroupsDoubleNesting()
Tests the case that there are two wrapping
|
void |
testValidateBeanValidationGroupsNested()
Tests the case that there is a wrapping
|
void |
testValidateBeanValidationGroupsNestingAndNested()
Tests the case that there is a wrapping
|
void |
testValidateBeanWithBeanValidationNotAvailable()
Tests the case that the BeanValidator is installed as a default-validator,
but bean validation is not available in the classpath.
|
createExpressionFactory, getContext, getDirectory, getLocalFile, loadStandardFacesConfig, resolveUrl, setFactories, setProjectStage, setUpApplication, setupBehaviors, setupComponents, setupConvertersAndValidators, setUpExternalContext, setupRenderers, setUpRenderKit, setUpServletObjects, setUpView
setUpClassloader, setUpFacesContext, setUpJSFObjects, setUpLifecycle, tearDown, tearDownClassloader
public void setUp() throws Exception
setUp
in class FaceletTestCase
Exception
public void testBeanValidatorInstalledManually() throws IOException
IOException
public void testBeanValidatorInstalledAutomatically() throws IOException
IOException
public void testDisabledBeanValidatorNotInstalled() throws IOException
IOException
public void testNestingValidateBean() throws IOException
IOException
public void testNestingValidateBeanDisabled() throws IOException
IOException
public void testValidateBeanDisabledAndEnabled() throws IOException
IOException
public void testValidateBeanNestingAndNested() throws IOException
IOException
public void testValidateBeanValidationGroups() throws IOException
IOException
public void testValidateBeanDefaultValidationGroup() throws IOException
IOException
public void testValidateBeanValidationGroupsNested() throws IOException
IOException
public void testValidateBeanValidationGroupsNestingAndNested() throws IOException
IOException
public void testValidateBeanValidationGroupsDoubleNesting() throws IOException
IOException
public void testValidateBeanWithBeanValidationNotAvailable() throws IOException
IOException
public void testValidateBeanValidationDisabledDoubleNesting() throws IOException
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.