org.apache.commons.jci.monitor
Class FilesystemAlterationMonitorTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.jci.monitor.FilesystemAlterationMonitorTestCase
All Implemented Interfaces:
junit.framework.Test

public final class FilesystemAlterationMonitorTestCase
extends junit.framework.TestCase

Author:
tcurdt

Constructor Summary
FilesystemAlterationMonitorTestCase()
           
 
Method Summary
protected  java.io.File createDirectory(java.lang.String pName)
           
protected  java.io.File createTempDirectory()
           
protected  void delay()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateDirectoryDetection()
           
 void testCreateFileDetection()
           
 void testCreatingFileInSubDirectoryChangesLastModified()
           
 void testCreatingLocalDirectoryChangesLastModified()
           
 void testCreatingLocalFileChangesLastModified()
           
 void testCreatingSubDirectoryChangesLastModified()
           
 void testDeleteDirectoryDetection()
           
 void testDeleteFileDetection()
           
 void testDirectoryDoublication()
           
 void testInterval()
           
 void testListenerDoublication()
           
 void testModifyFileDetection()
           
 void testTimeout()
           
protected  java.io.File writeFile(java.lang.String pName, byte[] pData)
           
protected  java.io.File writeFile(java.lang.String pName, java.lang.String pText)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilesystemAlterationMonitorTestCase

public FilesystemAlterationMonitorTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

createDirectory

protected java.io.File createDirectory(java.lang.String pName)
                                throws java.lang.Exception
Throws:
java.lang.Exception

writeFile

protected java.io.File writeFile(java.lang.String pName,
                                 byte[] pData)
                          throws java.lang.Exception
Throws:
java.lang.Exception

writeFile

protected java.io.File writeFile(java.lang.String pName,
                                 java.lang.String pText)
                          throws java.lang.Exception
Throws:
java.lang.Exception

createTempDirectory

protected java.io.File createTempDirectory()
                                    throws java.io.IOException
Throws:
java.io.IOException

delay

protected void delay()

testListenerDoublication

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

testDirectoryDoublication

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

testCreateFileDetection

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

testTimeout

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

testCreateDirectoryDetection

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

testDeleteFileDetection

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

testDeleteDirectoryDetection

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

testModifyFileDetection

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

testCreatingLocalDirectoryChangesLastModified

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

testCreatingLocalFileChangesLastModified

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

testCreatingSubDirectoryChangesLastModified

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

testCreatingFileInSubDirectoryChangesLastModified

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

testInterval

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.