Class ReloadableSpringServiceTest
- java.lang.Object
-
- net.shibboleth.ext.spring.service.ReloadableSpringServiceTest
-
public class ReloadableSpringServiceTest extends Object
ReloadableSpringServiceunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private static DurationRELOAD_DELAYprivate FiletestFile
-
Constructor Summary
Constructors Constructor Description ReloadableSpringServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcreatePopulatedFile(String dataPath)voiddeferedReload()voiddeleteFile()private voidoverwriteFileWith(String newDataPath)voidreloadableService()voidtestApplicationContextAware()voidtestBeanNameAware()voidtestFailFast()private ResourcetestFileResource()voidtestNotFailFast()
-
-
-
Method Detail
-
createPopulatedFile
private void createPopulatedFile(String dataPath) throws IOException
- Throws:
IOException
-
deleteFile
@AfterMethod public void deleteFile()
-
testFileResource
private Resource testFileResource()
-
overwriteFileWith
private void overwriteFileWith(String newDataPath) throws IOException
- Throws:
IOException
-
reloadableService
public void reloadableService() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
deferedReload
public void deferedReload() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testFailFast
public void testFailFast() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testNotFailFast
public void testNotFailFast() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testApplicationContextAware
public void testApplicationContextAware()
-
testBeanNameAware
public void testBeanNameAware()
-
-