org.apache.commons.configuration.reloading
Class TestFileChangedReloadingStrategy

java.lang.Object
  extended by org.apache.commons.configuration.reloading.TestFileChangedReloadingStrategy

public class TestFileChangedReloadingStrategy
extends Object

Test case for the ReloadableConfiguration class.

Version:
$Id: TestFileChangedReloadingStrategy.java 1225906 2011-12-30 20:01:37Z oheger $
Author:
Emmanuel Bourg

Constructor Summary
TestFileChangedReloadingStrategy()
           
 
Method Summary
 void testAutomaticReloading()
           
 void testFileDeletion()
           
 void testFromClassPath()
          Tests if a file from the classpath can be monitored.
 void testFromJar()
          Tests to watch a configuration file in a jar.
 void testGetRefreshDelay()
           
 void testNewFileReloading()
           
 void testReloadingRequiredMultipleTimes()
          Tests calling reloadingRequired() multiple times before a reload actually happens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFileChangedReloadingStrategy

public TestFileChangedReloadingStrategy()
Method Detail

testAutomaticReloading

public void testAutomaticReloading()
                            throws Exception
Throws:
Exception

testNewFileReloading

public void testNewFileReloading()
                          throws Exception
Throws:
Exception

testGetRefreshDelay

public void testGetRefreshDelay()

testFromClassPath

public void testFromClassPath()
                       throws Exception
Tests if a file from the classpath can be monitored.

Throws:
Exception

testFromJar

public void testFromJar()
                 throws Exception
Tests to watch a configuration file in a jar. In this case the jar file itself should be monitored.

Throws:
Exception

testReloadingRequiredMultipleTimes

public void testReloadingRequiredMultipleTimes()
                                        throws ConfigurationException
Tests calling reloadingRequired() multiple times before a reload actually happens. This test is related to CONFIGURATION-302.

Throws:
ConfigurationException

testFileDeletion

public void testFileDeletion()
                      throws Exception
Throws:
Exception


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.