()
| 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() |
nothing calls this directly
no test coverage detected