public class ReloadableSpringServiceTest extends Object
ReloadableSpringService unit test.| Modifier and Type | Field and Description |
|---|---|
private static long |
RELOAD_DELAY |
private File |
testFile |
| Constructor and Description |
|---|
ReloadableSpringServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createPopulatedFile(String dataPath) |
void |
deferedReload() |
void |
deleteFile() |
private void |
overwriteFileWith(String newDataPath) |
void |
reloadableService() |
void |
testApplicationContextAware() |
void |
testBeanNameAware() |
void |
testFailFast() |
private Resource |
testFileResource() |
void |
testNotFailFast() |
private static final long RELOAD_DELAY
private File testFile
private void createPopulatedFile(String dataPath) throws IOException
IOExceptionpublic void deleteFile()
private Resource testFileResource()
private void overwriteFileWith(String newDataPath) throws IOException
IOExceptionpublic void reloadableService()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void deferedReload()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testFailFast()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testNotFailFast()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testApplicationContextAware()
public void testBeanNameAware()
Copyright © 1999–2015. All rights reserved.