Ejemplo 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());
  }
Ejemplo n.º 2
0
 private String captureOutput(DoNotUseProxyPac pac) throws IOException {
   StringWriter writer = new StringWriter();
   pac.outputTo(writer);
   return writer.toString();
 }