org.bibalex.daf.entities.phase
Class FolderElementTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.bibalex.daf.entities.phase.FolderElementTest
All Implemented Interfaces:
junit.framework.Test

public class FolderElementTest
extends junit.framework.TestCase

Test for FolderElement

Author:
Shehab.Kamal

Constructor Summary
FolderElementTest()
           
 
Method Summary
private  void resetFolder(FolderElement folder)
          Resets the given folder recursively.
 void testChangeFields_2()
           
 void testChangeFields_3()
           
 void testChangeFields()
           
 void testSwapNameAndNewName()
           
 void testToString()
           
 void testToXmlString()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

FolderElementTest

public FolderElementTest()
Method Detail

testToString

public void testToString()
                  throws PhaseDefinitionException
Throws:
PhaseDefinitionException

testSwapNameAndNewName

public void testSwapNameAndNewName()
                            throws PhaseDefinitionException
Throws:
PhaseDefinitionException

testChangeFields

public void testChangeFields()
                      throws PhaseDefinitionException
Throws:
PhaseDefinitionException

testChangeFields_2

public void testChangeFields_2()
                        throws PhaseDefinitionException
Throws:
PhaseDefinitionException

testChangeFields_3

public void testChangeFields_3()
                        throws PhaseDefinitionException
Throws:
PhaseDefinitionException

resetFolder

private void resetFolder(FolderElement folder)
Resets the given folder recursively. A folder is reset if its mode = 'unrestricted' and its subFiles have count = '*' and compare = ''.

Parameters:
folder - The FolderElement to reset.

testToXmlString

public void testToXmlString()
                     throws PhaseDefinitionException
Throws:
PhaseDefinitionException