com.silverpeas.form
Class AbstractFormTest

java.lang.Object
  extended by com.silverpeas.form.AbstractFormTest

public class AbstractFormTest
extends Object

Unit tests on the AbstractForm implemented methods.


Nested Class Summary
 class AbstractFormTest.MyFormImpl
          A simple implementation of the AbstractForm class in order to test the method implemented by the abstract class.
 
Field Summary
static String FIELD_LABEL1
           
static String FIELD_LABEL2
           
static String FIELD_NAME1
           
static String FIELD_NAME2
           
static String FIELD_TYPE
           
static String FIELD_WYSIWYG
           
static String FIELD_WYSIWYG_TYPE
           
 
Constructor Summary
AbstractFormTest()
           
 
Method Summary
 void emptyTest()
          Empty test to check the unit test passes with its resources set up.
 void setUp()
           
 void tearDown()
           
 void testDisplayScriptsWithAnEmptyRecordTemplate()
           
 void testDisplayScriptWithANonEmptyRecordTemplate()
           
 void testIsEmptyWithAllFileItemsWithoutContent()
           
 void testIsEmptyWithNoFileItemsFound()
           
 void testIsNotEmptyWithOnlyOneFileItemWithoutContent()
           
 void testUpdateOfEmptyFormDoesNothing()
           
 void testUpdateWithoutWysiwygFields()
           
 void testUpdateWithWysiwygFields()
           
 void testUpdateWysiwyg()
           
 void testUpdateWysiwygOfEmptyFormDoesNothing()
           
 void testUpdateWysiwygWithNoWysiwygFieldsDoesNothing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_NAME1

public static final String FIELD_NAME1
See Also:
Constant Field Values

FIELD_NAME2

public static final String FIELD_NAME2
See Also:
Constant Field Values

FIELD_TYPE

public static final String FIELD_TYPE
See Also:
Constant Field Values

FIELD_LABEL1

public static final String FIELD_LABEL1
See Also:
Constant Field Values

FIELD_LABEL2

public static final String FIELD_LABEL2
See Also:
Constant Field Values

FIELD_WYSIWYG

public static final String FIELD_WYSIWYG
See Also:
Constant Field Values

FIELD_WYSIWYG_TYPE

public static final String FIELD_WYSIWYG_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractFormTest

public AbstractFormTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()

emptyTest

public void emptyTest()
Empty test to check the unit test passes with its resources set up.


testDisplayScriptsWithAnEmptyRecordTemplate

public void testDisplayScriptsWithAnEmptyRecordTemplate()
                                                 throws Exception
Throws:
Exception

testDisplayScriptWithANonEmptyRecordTemplate

public void testDisplayScriptWithANonEmptyRecordTemplate()
                                                  throws Exception
Throws:
Exception

testIsEmptyWithNoFileItemsFound

public void testIsEmptyWithNoFileItemsFound()
                                     throws Exception
Throws:
Exception

testIsEmptyWithAllFileItemsWithoutContent

public void testIsEmptyWithAllFileItemsWithoutContent()
                                               throws Exception
Throws:
Exception

testIsNotEmptyWithOnlyOneFileItemWithoutContent

public void testIsNotEmptyWithOnlyOneFileItemWithoutContent()
                                                     throws Exception
Throws:
Exception

testUpdateOfEmptyFormDoesNothing

public void testUpdateOfEmptyFormDoesNothing()
                                      throws Exception
Throws:
Exception

testUpdateWithWysiwygFields

public void testUpdateWithWysiwygFields()
                                 throws Exception
Throws:
Exception

testUpdateWithoutWysiwygFields

public void testUpdateWithoutWysiwygFields()
                                    throws Exception
Throws:
Exception

testUpdateWysiwygOfEmptyFormDoesNothing

public void testUpdateWysiwygOfEmptyFormDoesNothing()
                                             throws Exception
Throws:
Exception

testUpdateWysiwyg

public void testUpdateWysiwyg()
                       throws Exception
Throws:
Exception

testUpdateWysiwygWithNoWysiwygFieldsDoesNothing

public void testUpdateWysiwygWithNoWysiwygFieldsDoesNothing()
                                                     throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.