test_class.file: dataprep-transformation/src/test/java/org/talend/dataprep/transformation/format/ObjectBufferTest.java
test_class.identifier: ObjectBufferTest
test_case.body: @Test
      public void testCloseCleanUp() throws Exception {
          // Given
          ObjectBuffer<ObjectToBuffer> buffer = new ObjectBuffer<>(ObjectToBuffer.class);
  
          Path tempFile = (Path) ReflectionTestUtils.getField(buffer, "tempFile");
  
          // When
          assertTrue(Files.exists(tempFile));
          buffer.close();
  
          // Then
          assertFalse(Files.exists(tempFile));
      }
test_case.class_method_signature: ObjectBufferTest.testCloseCleanUp()
test_case.full_signature: @Test public void testCloseCleanUp()
test_case.identifier: testCloseCleanUp
test_case.invocations: getField assertTrue exists close assertFalse exists
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCloseCleanUp()
focal_class.declarator: generator
focal_class.modifier: private final
focal_class.original_string: private final JsonGenerator generator;
focal_class.type: JsonGenerator
focal_class.var_name: generator
focal_class.declarator: mapper = new ObjectMapper()
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper mapper = new ObjectMapper();
focal_class.type: ObjectMapper
focal_class.var_name: mapper
focal_class.declarator: tempFile
focal_class.modifier: private
focal_class.original_string: private Path tempFile;
focal_class.type: Path
focal_class.var_name: tempFile
focal_class.declarator: bufferedClass
focal_class.modifier: private
focal_class.original_string: private Class<T> bufferedClass;
focal_class.type: Class<T>
focal_class.var_name: bufferedClass
focal_class.declarator: closed = false
focal_class.modifier: private
focal_class.original_string: private boolean closed = false;
focal_class.type: boolean
focal_class.var_name: closed
focal_class.file: dataprep-transformation/src/main/java/org/talend/dataprep/transformation/format/ObjectBuffer.java
focal_class.identifier: ObjectBuffer
focal_class.interfaces: implements AutoCloseable
focal_class.class_method_signature: ObjectBuffer.ObjectBuffer(Class<T> bufferedClass)
focal_class.full_signature: public  ObjectBuffer(Class<T> bufferedClass)
focal_class.identifier: ObjectBuffer
focal_class.modifiers: public
focal_class.parameters: (Class<T> bufferedClass)
focal_class.signature:  ObjectBuffer(Class<T> bufferedClass)
focal_class.class_method_signature: ObjectBuffer.appendRow(T entity)
focal_class.full_signature: public void appendRow(T entity)
focal_class.identifier: appendRow
focal_class.modifiers: public
focal_class.parameters: (T entity)
focal_class.return: void
focal_class.signature: void appendRow(T entity)
focal_class.class_method_signature: ObjectBuffer.readAll()
focal_class.full_signature: public Stream<T> readAll()
focal_class.identifier: readAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<T>
focal_class.signature: Stream<T> readAll()
focal_class.class_method_signature: ObjectBuffer.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public void close() throws IOException {
          generator.close();
          FilesHelper.deleteQuietly(tempFile.toFile());
          closed = true;
      }
focal_method.class_method_signature: ObjectBuffer.close()
focal_method.full_signature: public void close()
focal_method.identifier: close
focal_method.invocations: close deleteQuietly toFile
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void close()