/** * A test with data with a timestamp one hour ago. No data should be identified as being deleteable */ @Test public void oneHourOldDataIntoDefaultBucketLogOutputTest() { // All the data is "new" so none should be ready to be aged-off loadOneHourData(); completeSetup(new Integer[0]); String expectedLogSummary = getOneHourSimulatedLogOutput(); String actualLogSummary = aiad.logAgeSummary(); Assert.assertEquals(expectedLogSummary, actualLogSummary); }
/** * A test with data with a timestamp one hour ago. No data should be identified as being deleteable */ @Test public void oneHourOldDataIntoDefaultBucketFileOutputTest() { // All the data is "new" so none should be ready to be aged-off loadOneHourData(); completeSetup(new Integer[0]); String expectedFileOutput = getOneHourOldDataSimulatedFileOutput(); String generatedOutput = readGeneratedFile(); Assert.assertEquals(expectedFileOutput, generatedOutput); }