org.bibalex.daf.entities.phase
Class PhysicalDefTest

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

public class PhysicalDefTest
extends junit.framework.TestCase

Test for PhysicalDef.

Author:
Shehab.Kamal

Constructor Summary
PhysicalDefTest()
           
 
Method Summary
private  void resetFolder(FolderElement folder)
          Resets the given folder recursively.
 void testChangeFields_2()
           
 void testChangeFields_3()
           
 void testChangeFields()
           
 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

PhysicalDefTest

public PhysicalDefTest()
Method Detail

testToString

public void testToString()
                  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