@Test public void openShouldCreateBufferedWriter() throws Exception { givenBufferedWriterManagerIsCreated(); File testFile = testFileManager.getTestFile(); BufferedWriter bufferedWriter = bufferedWriterManager.open(testFile); assertThat(bufferedWriter, is(not(nullValue()))); }
public BufferedWriter open(File file) throws IOException { fileWriter = new FileWriter(file); bufferedWriter = new BufferedWriter(fileWriter); return bufferedWriter; }
BufferedWriterManager { public BufferedWriter open(File file) throws IOException { fileWriter = new FileWriter(file); bufferedWriter = new BufferedWriter(fileWriter); return bufferedWriter; } }
BufferedWriterManager { public BufferedWriter open(File file) throws IOException { fileWriter = new FileWriter(file); bufferedWriter = new BufferedWriter(fileWriter); return bufferedWriter; } BufferedWriterManager(CloseableUtils closeableUtils); }
BufferedWriterManager { public BufferedWriter open(File file) throws IOException { fileWriter = new FileWriter(file); bufferedWriter = new BufferedWriter(fileWriter); return bufferedWriter; } BufferedWriterManager(CloseableUtils closeableUtils); BufferedWriter open(File file); void close(); }
BufferedWriterManager { public BufferedWriter open(File file) throws IOException { fileWriter = new FileWriter(file); bufferedWriter = new BufferedWriter(fileWriter); return bufferedWriter; } BufferedWriterManager(CloseableUtils closeableUtils); BufferedWriter open(File file); void close();  }