public class ScaffoldingForRollingTests extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
currentTime |
static String |
DATE_PATTERN_WITH_SECONDS |
protected List<String> |
expectedFilenameList |
protected List<Future<?>> |
futureList |
protected long |
nextRolloverThreshold |
protected String |
randomOutputDir |
static SimpleDateFormat |
SDF |
| Constructor and Description |
|---|
ScaffoldingForRollingTests() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Future future) |
protected void |
addExpectedFileName_ByDate(String patternStr,
long millis) |
protected void |
addExpectedFileName_ByDate(String outputDir,
String testId,
Date date,
boolean gzExtension) |
protected void |
addExpectedFileName_ByFileIndexCounter(String randomOutputDir,
String testId,
long millis,
int fileIndexCounter,
String compressionSuffix) |
protected void |
addExpectedFileNamedIfItsTime_ByDate(String outputDir,
String testId,
boolean gzExtension) |
static void |
existenceCheck(List<String> filenameList) |
static void |
existenceCheck(String filename) |
static int |
existenceCount(List<String> filenameList) |
static void |
fileContentCheck(File[] fileArray,
int runLength,
String prefix) |
protected List<String> |
filterElementsInListBySuffix(String suffix) |
protected Date |
getDateOfCurrentPeriodsStart() |
protected Date |
getDateOfPreviousPeriodsStart() |
static File[] |
getFilesInDirectory(String outputDirStr) |
protected long |
getMillisOfCurrentPeriodsStart() |
protected void |
incCurrentTime(long increment) |
protected boolean |
passThresholdTime(long nextRolloverThreshold) |
protected void |
recomputeRolloverThreshold(long ct) |
static void |
reverseSortedContentCheck(String outputDirStr,
int runLength,
String prefix) |
void |
setUp() |
static void |
sortedContentCheck(String outputDirStr,
int runLength,
String prefix) |
protected void |
waitForJobsToComplete() |
public static final String DATE_PATTERN_WITH_SECONDS
public static final SimpleDateFormat SDF
protected String randomOutputDir
protected long nextRolloverThreshold
protected long currentTime
public void setUp()
public static void existenceCheck(String filename)
public static void fileContentCheck(File[] fileArray, int runLength, String prefix) throws IOException
IOExceptionpublic static void sortedContentCheck(String outputDirStr, int runLength, String prefix) throws IOException
IOExceptionpublic static void reverseSortedContentCheck(String outputDirStr, int runLength, String prefix) throws IOException
IOExceptionprotected void recomputeRolloverThreshold(long ct)
protected boolean passThresholdTime(long nextRolloverThreshold)
protected void incCurrentTime(long increment)
protected Date getDateOfCurrentPeriodsStart()
protected Date getDateOfPreviousPeriodsStart()
protected long getMillisOfCurrentPeriodsStart()
protected void addExpectedFileName_ByDate(String patternStr, long millis)
protected void addExpectedFileName_ByDate(String outputDir, String testId, Date date, boolean gzExtension)
protected void addExpectedFileName_ByFileIndexCounter(String randomOutputDir, String testId, long millis, int fileIndexCounter, String compressionSuffix)
protected void addExpectedFileNamedIfItsTime_ByDate(String outputDir, String testId, boolean gzExtension)
protected void add(Future future)
protected void waitForJobsToComplete()
Copyright © 2005–2016 QOS.ch. All rights reserved.