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

Method setUp

test/org/apache/pig/test/TestMultiQueryLocal.java:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 private String TMP_DIR;
68
69 @Before
70 public void setUp() throws Exception {
71 PigContext context = new PigContext(Util.getLocalTestMode(), new Properties());
72 context.getProperties().setProperty(PigConfiguration.PIG_OPT_MULTIQUERY, ""+true);
73 myPig = new PigServer(context);
74 myPig.getPigContext().getProperties().setProperty("pig.usenewlogicalplan", "false");
75 myPig.getPigContext().getProperties().setProperty(PigConfiguration.PIG_TEMP_DIR, "build/test/tmp/");
76 TMP_DIR = FileLocalizer.getTemporaryPath(myPig.getPigContext()).toUri().getPath();
77 deleteOutputFiles();
78 }
79
80 @After
81 public void tearDown() throws Exception {

Callers

nothing calls this directly

Calls 8

getLocalTestModeMethod · 0.95
getPropertiesMethod · 0.95
getTemporaryPathMethod · 0.95
deleteOutputFilesMethod · 0.95
setPropertyMethod · 0.65
getPropertiesMethod · 0.45
getPigContextMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected