379380381382383384385386387388389
// Avoid to have this file in the next run fs.delete(sourceFile, false); } } } finally { stoppable.stop("test end"); cleaner.join(); fs.delete(rootDir, true); } }
162163164165166167168169170171172
Path topFile = new Path(testDir, "topFile"); fs.create(topFile).close(); assertTrue("Test file didn't get created.", fs.exists(topFile)); // stop the chore stop.stop("testing stop"); // run the chore chore.chore(); // test that the file still exists
383384385386387388389390391392393
165166167168169170171172173174175
179180181182183184185186187188189
regionChecker.start(); regionSplitter.start(); //wait until the splitter is finished regionSplitter.join(); stopper.stop(null); if (regionChecker.ex != null) { throw regionChecker.ex; }
190191192193194195196197198199200
178179180181182183184185186187188