MCPcopy Create free account
hub / github.com/apache/pig / setUp

Method setUp

test/org/apache/pig/test/TestTypedMap.java:47–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 private String tmpDirName = Util.encodeEscape(System.getProperty("java.io.tmpdir")) + "/pigtest/tmp";
46
47 @Before
48 public void setUp() throws Exception {
49 FileLocalizer.setInitialized(false);
50 File tmpDir = new File(tmpDirName);
51 if (tmpDir.exists()) {
52 for (File tmpFile : tmpDir.listFiles()) {
53 tmpFile.delete();
54 }
55 } else {
56 tmpDir.mkdirs();
57 }
58
59 }
60
61 @After
62 public void tearDown() throws Exception {

Callers

nothing calls this directly

Calls 4

setInitializedMethod · 0.95
mkdirsMethod · 0.80
existsMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected