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, zipEntryNameCheck
public TimeBasedRollingTest()
public void setUp()
setUp
in class ScaffoldingForRollingTests
public void tearDown()
public void noCompression_FileBlank_NoRestart_1() throws IOException
IOException
public void withCompression_FileBlank_NoRestart_2() throws IOException
IOException
public void noCompression_FileBlank_StopRestart_3() throws IOException
IOException
public void noCompression_FileSet_StopRestart_4() throws IOException
IOException
public void noCompression_FileSet_StopRestart_WithLongWait_4B() throws IOException
IOException
public void noCompression_FileSet_NoRestart_5() throws IOException
IOException
public void withCompression_FileSet_NoRestart_6() throws IOException
IOException
public void withMissingTargetDirWithCompression() throws IOException
IOException
public void withMissingTargetDirWithZipCompression() throws IOException
IOException
public void failed_rename() throws IOException
IOException
Copyright © 2005–2018 QOS.ch. All rights reserved.