Code example for File

Methods: delete, exists

0
    Assert.assertEquals(1, cp.run("bla bla ").getResponseCode());
    CompileProcessor cp2 = new CompileProcessor();
    CommandProcessorResponse response = cp2.run(
        "` import org.apache.hadoop.hive.ql.exec.UDF \n public class x { \n }` AS GROOVY NAMED x.groovy"); 
    Assert.assertEquals(0, response.getResponseCode());
    File f = new File(response.getErrorMessage());
    Assert.assertTrue(f.exists());
    f.delete();
  } 
 
}