test_class.file: buildergen/src/test/java/info/piwai/buildergen/generation/SourceCodeWriterTest.java
test_class.identifier: SourceCodeWriterTest
test_case.body: @Test
  	public void multipleCallsAreDelegatedToFiler() throws IOException {
  		Filer filer = mock(Filer.class);
  
  		JavaFileObject fileObject = mock(JavaFileObject.class);
  		when(filer.createSourceFile(anyString())).thenReturn(fileObject);
  
  		SourceCodeWriter sourceCodeWriter = new SourceCodeWriter(filer);
  		JPackage jPackage = new JCodeModel()._package("some.package");
  		sourceCodeWriter.openBinary(jPackage, "SomeClass.java");
  		sourceCodeWriter.openBinary(jPackage, "SomeClass.java");
  
  		verify(filer, times(2)).createSourceFile(anyString());
  
  	}
test_case.class_method_signature: SourceCodeWriterTest.multipleCallsAreDelegatedToFiler()
test_case.full_signature: @Test public void multipleCallsAreDelegatedToFiler()
test_case.identifier: multipleCallsAreDelegatedToFiler
test_case.invocations: mock mock thenReturn when createSourceFile anyString _package openBinary openBinary createSourceFile verify times anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void multipleCallsAreDelegatedToFiler()
focal_class.declarator: filer
focal_class.modifier: private final
focal_class.original_string: private final Filer filer;
focal_class.type: Filer
focal_class.var_name: filer
focal_class.file: buildergen/src/main/java/info/piwai/buildergen/generation/SourceCodeWriter.java
focal_class.identifier: SourceCodeWriter
focal_class.class_method_signature: SourceCodeWriter.SourceCodeWriter(Filer filer)
focal_class.full_signature: public  SourceCodeWriter(Filer filer)
focal_class.identifier: SourceCodeWriter
focal_class.modifiers: public
focal_class.parameters: (Filer filer)
focal_class.signature:  SourceCodeWriter(Filer filer)
focal_class.class_method_signature: SourceCodeWriter.openBinary(JPackage pkg, String fileName)
focal_class.full_signature: @Override public OutputStream openBinary(JPackage pkg, String fileName)
focal_class.identifier: openBinary
focal_class.modifiers: @Override public
focal_class.parameters: (JPackage pkg, String fileName)
focal_class.return: OutputStream
focal_class.signature: OutputStream openBinary(JPackage pkg, String fileName)
focal_class.class_method_signature: SourceCodeWriter.toQualifiedClassName(JPackage pkg, String fileName)
focal_class.full_signature: private String toQualifiedClassName(JPackage pkg, String fileName)
focal_class.identifier: toQualifiedClassName
focal_class.modifiers: private
focal_class.parameters: (JPackage pkg, String fileName)
focal_class.return: String
focal_class.signature: String toQualifiedClassName(JPackage pkg, String fileName)
focal_class.class_method_signature: SourceCodeWriter.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.superclass: extends CodeWriter
focal_method.body: @Override
  	public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
  		String qualifiedClassName = toQualifiedClassName(pkg, fileName);
  
  		JavaFileObject sourceFile = filer.createSourceFile(qualifiedClassName);
  
  		return sourceFile.openOutputStream();
  	}
focal_method.class_method_signature: SourceCodeWriter.openBinary(JPackage pkg, String fileName)
focal_method.full_signature: @Override public OutputStream openBinary(JPackage pkg, String fileName)
focal_method.identifier: openBinary
focal_method.invocations: toQualifiedClassName createSourceFile openOutputStream
focal_method.modifiers: @Override public
focal_method.parameters: (JPackage pkg, String fileName)
focal_method.return: OutputStream
focal_method.signature: OutputStream openBinary(JPackage pkg, String fileName)