@Test public void replaces_stderr_with_the_captured_stream() { installer.install(capturer); assertThat(outErr.err(), is(capturer.err())); }
public void install(OutputCapturer capturer) { outErr.setOut(capturer.out()); outErr.setErr(capturer.err()); }
OutputCapturerInstaller { public void install(OutputCapturer capturer) { outErr.setOut(capturer.out()); outErr.setErr(capturer.err()); } }
OutputCapturerInstaller { public void install(OutputCapturer capturer) { outErr.setOut(capturer.out()); outErr.setErr(capturer.err()); } OutputCapturerInstaller(OutErr outErr); }
OutputCapturerInstaller { public void install(OutputCapturer capturer) { outErr.setOut(capturer.out()); outErr.setErr(capturer.err()); } OutputCapturerInstaller(OutErr outErr); void install(OutputCapturer capturer); }
OutputCapturerInstaller { public void install(OutputCapturer capturer) { outErr.setOut(capturer.out()); outErr.setErr(capturer.err()); } OutputCapturerInstaller(OutErr outErr); void install(OutputCapturer capturer);  }