public class FormConfigTest
extends org.alfresco.util.BaseTest
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.extensions.config.xml.XMLConfigService |
configService |
protected FormConfigElement |
defaultFormInContent |
protected DefaultControlsConfigElement |
defltCtrlsConfElement |
protected FormsConfigElement |
formsConfigElement |
protected org.springframework.extensions.config.Config |
globalConfig |
protected org.springframework.extensions.config.ConfigElement |
globalConstraintHandlers |
| Constructor and Description |
|---|
FormConfigTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getConfigXmlFile() |
protected void |
setUp() |
void |
testAccessAllFieldRelatedData() |
void |
testControlParamSequenceThatIncludesValuelessParamsParsesCorrectly() |
void |
testFormConfigElementShouldHaveNoChildren() |
void |
testFormsShouldSupportMultipleConstraintMessageTags() |
void |
testFormSubmissionUrl() |
void |
testGetFieldsInASet_ViewEditCreate()
This test method retrieves those fields which are visible or hidden for a
particular mode and for a non-default set.
|
void |
testGetFieldsInTheDefaultSet_ViewEditCreate()
This test method retrieves those fields which are visible or hidden for a
particular mode and for the default set.
|
void |
testGetFormFieldVisibilitiesForModes() |
void |
testGetFormTemplates() |
void |
testGetRootSetsShouldReturnTheDefaultSetWhenNoSetsDeclared() |
void |
testGetSetsFromForm() |
void |
testGetVisibleFieldNamesForDefaultSet()
Even when no sets are explicitly declared in the config xml, there is always
the default set.
|
void |
testVisibleFieldsMustBeCorrectlyOrdered() |
assertFileIsValid, getResourcesDir, initXMLConfigService, initXMLConfigService, initXMLConfigServicecountTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, 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, formatprotected org.springframework.extensions.config.xml.XMLConfigService configService
protected org.springframework.extensions.config.Config globalConfig
protected org.springframework.extensions.config.ConfigElement globalConstraintHandlers
protected FormsConfigElement formsConfigElement
protected FormConfigElement defaultFormInContent
protected DefaultControlsConfigElement defltCtrlsConfElement
protected java.lang.String getConfigXmlFile()
public void testFormSubmissionUrl()
public void testGetFormTemplates()
public void testGetFormFieldVisibilitiesForModes()
public void testVisibleFieldsMustBeCorrectlyOrdered()
public void testGetSetsFromForm()
public void testGetFieldsInTheDefaultSet_ViewEditCreate()
public void testGetFieldsInASet_ViewEditCreate()
public void testGetRootSetsShouldReturnTheDefaultSetWhenNoSetsDeclared()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetVisibleFieldNamesForDefaultSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testAccessAllFieldRelatedData()
public void testControlParamSequenceThatIncludesValuelessParamsParsesCorrectly()
public void testFormsShouldSupportMultipleConstraintMessageTags()
public void testFormConfigElementShouldHaveNoChildren()
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.ExceptionTestCase.setUp()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.