org.bibalex.daf.entities.phase
Class Phase_Scan_Test

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

public class Phase_Scan_Test
extends junit.framework.TestCase

Test for phase, scan functionality only. Important: This test assumes the following:
1) A folder named 'ToScan' exists at the server
2) The folder passes Pre-Scanning checks.

Author:
Shehab.Kamal

Field Summary
private  java.lang.String curDir
           
private  java.lang.String password
           
private  java.lang.String server
           
private  java.lang.String userName
           
private  java.lang.String xmlDescription
           
 
Constructor Summary
Phase_Scan_Test()
           
 
Method Summary
 void setUp()
           
 void testApplyPostPhaseActions()
           
 void testApplyPostPhaseChecks()
           
 void testApplyPrePhaseActions()
           
 void testApplyPrePhaseChecks()
           
 void testPause()
           
 
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
 

Field Detail

xmlDescription

private java.lang.String xmlDescription

curDir

private java.lang.String curDir

server

private java.lang.String server

userName

private java.lang.String userName

password

private java.lang.String password
Constructor Detail

Phase_Scan_Test

public Phase_Scan_Test()
Method Detail

setUp

public void setUp()
           throws ResourceManagerException
Overrides:
setUp in class junit.framework.TestCase
Throws:
ResourceManagerException

testApplyPrePhaseChecks

public void testApplyPrePhaseChecks()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testApplyPrePhaseActions

public void testApplyPrePhaseActions()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testPause

public void testPause()
               throws PhaseActionException
Throws:
PhaseActionException

testApplyPostPhaseChecks

public void testApplyPostPhaseChecks()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testApplyPostPhaseActions

public void testApplyPostPhaseActions()
                               throws java.lang.Exception
Throws:
java.lang.Exception