try {
if (0 != (testsToRun & 0x1)) {
// Basic functionality, hourly first time run
doTest(1);
new CustomProcessingController().runThroughSavedQueues();
}
if (0 != (testsToRun & 0x2)) {
// Basic functionality, multiple queries
doTest(1);
doTest(2); // already inserted docs)
new CustomProcessingController().runThroughSavedQueues();
}
if (0 != (testsToRun & 0x4)) {
// Check that extra time term gets added and check last time
doTest(3);
new CustomProcessingController().runThroughSavedQueues();
}
if (0 != (testsToRun & 0x8)) {
// daily frequency, maxDocs
doTest(4);
new CustomProcessingController().runThroughSavedQueues();
}
if (0 != (testsToRun & 0x10)) {
// weekly frequency, last doc inserted
doTest(5);
new CustomProcessingController().runThroughSavedQueues();
}
if (0 != (testsToRun & 0x20)) {
// saved query
doTest(6);
new CustomProcessingController().runThroughSavedQueues();
}
}
finally {
DbManager.getSocial().getShare().remove(new BasicDBObject(SharePojo._id_, fixedShareId_1));
DbManager.getSocial().getShare().remove(new BasicDBObject(SharePojo._id_, fixedShareId_2));