test_class.declarator: PARENT = "./test/"
test_class.modifier: private static final
test_class.original_string: private static final String PARENT = "./test/";
test_class.type: String
test_class.var_name: PARENT
test_class.declarator: PATH = PARENT + "file.txt"
test_class.modifier: private static final
test_class.original_string: private static final String PATH = PARENT + "file.txt";
test_class.type: String
test_class.var_name: PATH
test_class.declarator: dir
test_class.modifier: private static
test_class.original_string: private static File dir;
test_class.type: File
test_class.var_name: dir
test_class.declarator: file
test_class.modifier: private static
test_class.original_string: private static File file;
test_class.type: File
test_class.var_name: file
test_class.declarator: writer
test_class.modifier: private static
test_class.original_string: private static PrintWriter writer;
test_class.type: PrintWriter
test_class.var_name: writer
test_class.file: storm/storm-benchmark/src/test/java/storm/benchmark/util/FileUtilsTest.java
test_class.identifier: FileUtilsTest
test_case.body: @Test
    public void testFileCreateWhenParentDoesNotExist() {
      writer = FileUtils.createFileWriter(PARENT, PATH);
      assertThat(writer).isNotNull();
      assertThat(dir).exists();
      assertThat(file).exists();
    }
test_case.class_method_signature: FileUtilsTest.testFileCreateWhenParentDoesNotExist()
test_case.full_signature: @Test public void testFileCreateWhenParentDoesNotExist()
test_case.identifier: testFileCreateWhenParentDoesNotExist
test_case.invocations: createFileWriter isNotNull assertThat exists assertThat exists assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFileCreateWhenParentDoesNotExist()
focal_class.file: storm/storm-benchmark/src/main/java/storm/benchmark/util/FileUtils.java
focal_class.identifier: FileUtils
focal_class.class_method_signature: FileUtils.FileUtils()
focal_class.full_signature: private  FileUtils()
focal_class.identifier: FileUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FileUtils()
focal_class.class_method_signature: FileUtils.readLines(InputStream input)
focal_class.full_signature: public static List<String> readLines(InputStream input)
focal_class.identifier: readLines
focal_class.modifiers: public static
focal_class.parameters: (InputStream input)
focal_class.return: List<String>
focal_class.signature: List<String> readLines(InputStream input)
focal_class.class_method_signature: FileUtils.createFileWriter(String parent, String name)
focal_class.full_signature: public static PrintWriter createFileWriter(String parent, String name)
focal_class.identifier: createFileWriter
focal_class.modifiers: public static
focal_class.parameters: (String parent, String name)
focal_class.return: PrintWriter
focal_class.signature: PrintWriter createFileWriter(String parent, String name)
focal_method.body: public static PrintWriter createFileWriter(String parent, String name) {
      try {
        final File dir = new File(parent);
        if (dir.exists() || dir.mkdirs()) {
          final File file = new File(name);
          file.createNewFile();
          final PrintWriter writer = new PrintWriter(new OutputStreamWriter(
          new FileOutputStream(file, true)));
          return writer;
        } else {
          throw new RuntimeException("fail to create parent directory " + parent);
        }
      } catch (IOException e) {
        throw new RuntimeException("No such file or directory " + name, e);
      }
    }
focal_method.class_method_signature: FileUtils.createFileWriter(String parent, String name)
focal_method.full_signature: public static PrintWriter createFileWriter(String parent, String name)
focal_method.identifier: createFileWriter
focal_method.invocations: exists mkdirs createNewFile
focal_method.modifiers: public static
focal_method.parameters: (String parent, String name)
focal_method.return: PrintWriter
focal_method.signature: PrintWriter createFileWriter(String parent, String name)