public class FormConfigBasicTest
extends org.alfresco.util.BaseTest
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.extensions.config.xml.XMLConfigService |
configService |
protected DefaultControlsConfigElement |
defltCtrlsConfElement |
protected org.springframework.extensions.config.Config |
globalConfig |
protected org.springframework.extensions.config.ConfigElement |
globalConstraintHandlers |
protected org.springframework.extensions.config.ConfigElement |
globalDefaultControls |
protected FormConfigElement |
hiddenFieldsDefaultForm |
protected FormsConfigElement |
hiddenFieldsFormsConfigElement |
protected FormConfigElement |
myExampleDefaultForm |
protected FormsConfigElement |
myExampleFormsConfigElement |
protected FormConfigElement |
noAppearanceDefaultForm |
protected FormsConfigElement |
noAppearanceFormsConfigElement |
protected FormConfigElement |
noVisibilityDefaultForm |
protected FormsConfigElement |
noVisibilityFormsConfigElement |
| Constructor and Description |
|---|
FormConfigBasicTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
getConfigFiles() |
protected java.util.List |
getExpectedControlParamsForDTest() |
protected java.util.List |
getExpectedControlParamsForDText() |
protected java.lang.String |
getExpectedMessageForNumericConstraint() |
protected java.util.List |
getExpectedTemplatesForNoAppearanceDefaultForm()
This method returns a List
|
protected void |
setUp() |
void |
testConstraintHandlerOnField()
This test case should test the overriding of a constraint handler from the default
(or form) level, to a single field and on to an overridden field.
|
void |
testControlParamsAreConsistentBetweenGlobalAndFieldLevel() |
void |
testEmptyConstraintsMsgs() |
void |
testFieldsVisibleInViewModeShouldStillBeVisibleWithNoAppearanceTag() |
void |
testFieldVisibilityForTwoCombinedFormTags() |
void |
testFormConfigElementShouldHaveNoChildren() |
void |
testFormSubmissionUrl() |
void |
testGetDefaultFormElement() |
void |
testGetDependencies()
This test checks that the expected JS and CSS resources are available.
|
void |
testGetForcedFields() |
void |
testGetFormElementById() |
void |
testGetFormFieldVisibilitiesForModes() |
void |
testGetFormTemplatesForViewEditCreate() |
void |
testGetNonexistentDefaultFormElement() |
void |
testGetNonexistentFormElementById() |
void |
testGetVisibleFieldsForFormWithoutFieldVisibilityReturnsNull() |
void |
testGlobalConstraintHandlers() |
void |
testGlobalDefaultControls() |
void |
testHiddenFields()
This test checks the lookup of explicitly listed hidden fields
|
void |
testMandatoryField()
Tests the 'mandatory' attribute
|
void |
testNoVisibility()
This test checks that appearance config can be accessed when there is no visibility element.
|
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 globalDefaultControls
protected org.springframework.extensions.config.ConfigElement globalConstraintHandlers
protected FormsConfigElement myExampleFormsConfigElement
protected FormConfigElement myExampleDefaultForm
protected FormsConfigElement noAppearanceFormsConfigElement
protected FormConfigElement noAppearanceDefaultForm
protected FormsConfigElement noVisibilityFormsConfigElement
protected FormConfigElement noVisibilityDefaultForm
protected FormsConfigElement hiddenFieldsFormsConfigElement
protected FormConfigElement hiddenFieldsDefaultForm
protected DefaultControlsConfigElement defltCtrlsConfElement
protected java.util.List getConfigFiles()
protected java.lang.String getExpectedMessageForNumericConstraint()
protected java.util.List getExpectedControlParamsForDText()
protected java.util.List getExpectedControlParamsForDTest()
protected java.util.List getExpectedTemplatesForNoAppearanceDefaultForm()
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.ExceptionTestCase.setUp()public void testGetDefaultFormElement()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetNonexistentDefaultFormElement()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetFormElementById()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetNonexistentFormElementById()
throws java.lang.Exception
java.lang.Exceptionpublic void testFormSubmissionUrl()
public void testGetFormTemplatesForViewEditCreate()
throws java.lang.Exception
java.lang.Exceptionpublic void testGlobalConstraintHandlers()
public void testGlobalDefaultControls()
public void testControlParamsAreConsistentBetweenGlobalAndFieldLevel()
public void testFormConfigElementShouldHaveNoChildren()
public void testEmptyConstraintsMsgs()
public void testFieldsVisibleInViewModeShouldStillBeVisibleWithNoAppearanceTag()
public void testGetFormFieldVisibilitiesForModes()
public void testGetForcedFields()
public void testGetVisibleFieldsForFormWithoutFieldVisibilityReturnsNull()
public void testFieldVisibilityForTwoCombinedFormTags()
public void testConstraintHandlerOnField()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetDependencies()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoVisibility()
throws java.lang.Exception
java.lang.Exceptionpublic void testHiddenFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testMandatoryField()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.