public class TimeBasedRollingTest extends ScaffoldingForRollingTests
The regression tests log a few times using a RollingFileAppender. Then, they predict the names of the files which should be generated and compare them with witness files.
Compression file option Stop/Restart
Test1 NO BLANK NO
Test2 YES BLANK NO
Test3 NO BLANK YES
Test4 NO SET YES
Test5 NO SET NO
Test6 YES SET NO
context, currentTime, DATE_PATTERN_BY_DAY, DATE_PATTERN_WITH_SECONDS, expectedFilenameList, futureList, nextRolloverThreshold, randomOutputDir, SDF| Constructor and Description |
|---|
TimeBasedRollingTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
failed_rename() |
void |
noCompression_FileBlank_NoRestart_1() |
void |
noCompression_FileBlank_StopRestart_3() |
void |
noCompression_FileSet_NoRestart_5() |
void |
noCompression_FileSet_StopRestart_4() |
void |
noCompression_FileSet_StopRestart_WithLongWait_4B() |
void |
setUp() |
void |
tearDown() |
void |
withCompression_FileBlank_NoRestart_2() |
void |
withCompression_FileSet_NoRestart_6() |
void |
withMissingTargetDirWithCompression() |
void |
withMissingTargetDirWithZipCompression() |
add, addExpectedFileName_ByDate, addExpectedFileName_ByDate, addExpectedFileName_ByFileIndexCounter, addExpectedFileNamedIfItsTime_ByDate, addExpectedFileNamedIfItsTime_ByDate, checkZipEntryMatchesZipFilename, existenceCheck, existenceCheck, existenceCount, fileContentCheck, fileContentCheck, filterElementsInListBySuffix, getDateOfCurrentPeriodsStart, getDateOfPreviousPeriodsStart, getFilesInDirectory, getMillisOfCurrentPeriodsStart, incCurrentTime, massageExpectedFilesToCorresponToCurrentTarget, passThresholdTime, recomputeRolloverThreshold, reverseSortedContentCheck, sortedContentCheck, sortedContentCheck, testId2FileName, waitForJobsToComplete, zipEntryNameCheckpublic TimeBasedRollingTest()
public void setUp()
setUp in class ScaffoldingForRollingTestspublic void tearDown()
public void noCompression_FileBlank_NoRestart_1() throws IOException
IOExceptionpublic void withCompression_FileBlank_NoRestart_2() throws IOException
IOExceptionpublic void noCompression_FileBlank_StopRestart_3() throws IOException
IOExceptionpublic void noCompression_FileSet_StopRestart_4() throws IOException
IOExceptionpublic void noCompression_FileSet_StopRestart_WithLongWait_4B() throws IOException
IOExceptionpublic void noCompression_FileSet_NoRestart_5() throws IOException
IOExceptionpublic void withCompression_FileSet_NoRestart_6() throws IOException
IOExceptionpublic void withMissingTargetDirWithCompression() throws IOException
IOExceptionpublic void withMissingTargetDirWithZipCompression() throws IOException
IOExceptionpublic void failed_rename() throws IOException
IOExceptionCopyright © 2005–2018 QOS.ch. All rights reserved.