com.nurelm.nucontent.model.test
Class PageTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.nurelm.nucontent.model.test.PageTest
All Implemented Interfaces:
junit.framework.Test

public class PageTest
extends junit.framework.TestCase

DOCUMENT ME!


Constructor Summary
PageTest(java.lang.String name)
          I had a problem with TXs.
 
Method Summary
 void setUp()
          DOCUMENT ME!
static junit.framework.Test suite()
          DOCUMENT ME!
 void testAddChildFile()
          DOCUMENT ME!
 void testAddChildLink()
          DOCUMENT ME!
 void testAddContent()
          Fail-safe? No, may leave content on failure
 void testAddGetRepeatList()
          Robust OK, when you implement RepeatItems, consider more thorough tests Fail-safe no - could leave RepeatList in db
 void testAddImage()
          Fail-safe no - could leave Image in db
 void testAddRemoveChildPage()
          Fail-safe? No, may leave a child node on failure
 void testGetBirdSeedList()
          Fail-safe? No, could leave two sub pages in db on failure.
 void testGetEditorGroupNamesArray()
          DOCUMENT ME!
 void testGetFullNavTreeList()
          DOCUMENT ME!
 void testGetName()
          DOCUMENT ME!
 void testGetViewerGroupNamesArray()
          DOCUMENT ME!
 void testHasChildren()
          DOCUMENT ME!
 void testIsEditable()
          DOCUMENT ME!
 void testIsViewable()
          DOCUMENT ME!
 void testMoveChildNodeUpDown()
          DOCUMENT ME!
 void testRecursiveReplaceEditorGroups()
          DOCUMENT ME!
 void testRecursiveReplaceViewerGroups()
          DOCUMENT ME!
 void testReplaceEditorGroupsAndGetEditorGroups()
          DOCUMENT ME!
 void testReplaceViewerGroupsAndGetViewerGroups()
          DOCUMENT ME!
 void testSetName()
          DOCUMENT ME!
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageTest

public PageTest(java.lang.String name)
I had a problem with TXs. It was ultimately linked to the fact that the constructor is not just called once!

Parameters:
name - DOCUMENT ME!
Method Detail

suite

public static junit.framework.Test suite()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setUp

public void setUp()
           throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testSetName

public void testSetName()
DOCUMENT ME!


testGetName

public void testGetName()
DOCUMENT ME!


testAddContent

public void testAddContent()
                    throws java.lang.Exception
Fail-safe? No, may leave content on failure

Throws:
java.lang.Exception - DOCUMENT ME!

testAddRemoveChildPage

public void testAddRemoveChildPage()
                            throws java.lang.Exception
Fail-safe? No, may leave a child node on failure

Throws:
java.lang.Exception - DOCUMENT ME!

testGetBirdSeedList

public void testGetBirdSeedList()
                         throws java.lang.Exception
Fail-safe? No, could leave two sub pages in db on failure.

Throws:
java.lang.Exception - DOCUMENT ME!

testIsViewable

public void testIsViewable()
                    throws DataAccessException
DOCUMENT ME!

Throws:
DataAccessException - DOCUMENT ME!

testIsEditable

public void testIsEditable()
                    throws DataAccessException
DOCUMENT ME!

Throws:
DataAccessException - DOCUMENT ME!

testAddChildFile

public void testAddChildFile()
                      throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testAddChildLink

public void testAddChildLink()
                      throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testReplaceEditorGroupsAndGetEditorGroups

public void testReplaceEditorGroupsAndGetEditorGroups()
DOCUMENT ME!


testGetEditorGroupNamesArray

public void testGetEditorGroupNamesArray()
DOCUMENT ME!


testRecursiveReplaceEditorGroups

public void testRecursiveReplaceEditorGroups()
                                      throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testReplaceViewerGroupsAndGetViewerGroups

public void testReplaceViewerGroupsAndGetViewerGroups()
DOCUMENT ME!


testRecursiveReplaceViewerGroups

public void testRecursiveReplaceViewerGroups()
                                      throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testGetViewerGroupNamesArray

public void testGetViewerGroupNamesArray()
DOCUMENT ME!


testMoveChildNodeUpDown

public void testMoveChildNodeUpDown()
                             throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testHasChildren

public void testHasChildren()
                     throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!

testAddImage

public void testAddImage()
                  throws DataAccessException
Fail-safe no - could leave Image in db

Throws:
DataAccessException - DOCUMENT ME!

testAddGetRepeatList

public void testAddGetRepeatList()
                          throws DataAccessException
Robust OK, when you implement RepeatItems, consider more thorough tests Fail-safe no - could leave RepeatList in db

Throws:
DataAccessException - DOCUMENT ME!

testGetFullNavTreeList

public void testGetFullNavTreeList()
                            throws java.lang.Exception
DOCUMENT ME!

Throws:
java.lang.Exception - DOCUMENT ME!