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

Method setUp

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

Source from the content-addressed store, hash-verified

40 static MiniGenericCluster cluster = MiniGenericCluster.buildCluster();
41
42 @Before
43 public void setUp()
44 throws Exception
45 {
46 pig = new PigServer(cluster.getExecType(), cluster.getProperties());
47
48 tmpFile = File.createTempFile( this.getClass().getName(), ".txt");
49 tmpFile.delete(); // we don't want the file, just the temp path
50
51 tmpfilepath = Util.removeColon(tmpFile.getCanonicalPath());
52
53 String input[] = new String[DATALEN];
54 for(int i = 0; i < DATALEN; i++) {
55 input[i] = Integer.toString(i);
56 }
57
58 Util.createInputFile(cluster, tmpfilepath, input);
59 }
60
61 @After
62 public void tearDown()

Callers

nothing calls this directly

Calls 9

removeColonMethod · 0.95
createInputFileMethod · 0.95
getClassMethod · 0.80
deleteMethod · 0.65
getExecTypeMethod · 0.45
getPropertiesMethod · 0.45
createTempFileMethod · 0.45
getNameMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected