Esempio n. 1
0
  public void testShouldNotReturnAnythingIfNothingIsConfigured() throws IOException {
    DoNotUseProxyPac pac = new DoNotUseProxyPac();

    StringWriter writer = new StringWriter();
    pac.outputTo(writer);

    assertEquals(writer.toString(), EMPTY_PAC, writer.toString());
  }
Esempio n. 2
0
 private String captureOutput(DoNotUseProxyPac pac) throws IOException {
   StringWriter writer = new StringWriter();
   pac.outputTo(writer);
   return writer.toString();
 }