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

Method setUp

test/org/apache/pig/test/TestUDF.java:60–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 static MiniGenericCluster cluster = MiniGenericCluster.buildCluster();
59
60 @Before
61 public void setUp() throws Exception {
62 Util.resetStateForExecModeSwitch();
63 TempScriptFile = File.createTempFile("temp_jira_851", ".pig");
64 FileWriter writer = new FileWriter(TempScriptFile);
65 for (String line : ScriptStatement) {
66 writer.write(line + "\n");
67 }
68 writer.close();
69
70 }
71
72 @AfterClass
73 public static void oneTimeTearDown() throws Exception {

Callers

nothing calls this directly

Calls 4

closeMethod · 0.65
createTempFileMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected