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  File createDirectory(String pName)
           
protected  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  File writeFile(String pName, byte[] pData)
           
protected  File writeFile(String pName, String pText)
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
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 Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

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

createDirectory

protected File createDirectory(String pName)
                        throws Exception
Throws:
Exception

writeFile

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

writeFile

protected File writeFile(String pName,
                         String pText)
                  throws Exception
Throws:
Exception

createTempDirectory

protected File createTempDirectory()
                            throws IOException
Throws:
IOException

delay

protected void delay()

testListenerDoublication

public void testListenerDoublication()
                              throws Exception
Throws:
Exception

testDirectoryDoublication

public void testDirectoryDoublication()
                               throws Exception
Throws:
Exception

testCreateFileDetection

public void testCreateFileDetection()
                             throws Exception
Throws:
Exception

testTimeout

public void testTimeout()
                 throws Exception
Throws:
Exception

testCreateDirectoryDetection

public void testCreateDirectoryDetection()
                                  throws Exception
Throws:
Exception

testDeleteFileDetection

public void testDeleteFileDetection()
                             throws Exception
Throws:
Exception

testDeleteDirectoryDetection

public void testDeleteDirectoryDetection()
                                  throws Exception
Throws:
Exception

testModifyFileDetection

public void testModifyFileDetection()
                             throws Exception
Throws:
Exception

testCreatingLocalDirectoryChangesLastModified

public void testCreatingLocalDirectoryChangesLastModified()
                                                   throws Exception
Throws:
Exception

testCreatingLocalFileChangesLastModified

public void testCreatingLocalFileChangesLastModified()
                                              throws Exception
Throws:
Exception

testCreatingSubDirectoryChangesLastModified

public void testCreatingSubDirectoryChangesLastModified()
                                                 throws Exception
Throws:
Exception

testCreatingFileInSubDirectoryChangesLastModified

public void testCreatingFileInSubDirectoryChangesLastModified()
                                                       throws Exception
Throws:
Exception

testInterval

public void testInterval()
                  throws Exception
Throws:
Exception


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.