@Test(expected = IllegalArgumentException.class) public void testWithPortVerify() { underTest.withPort(0); }
public ValidatingProxyServer withPort(int port) { checkArgument(port > 0, "Must have port greater than zero."); this.serverPort = port; return this; }
ValidatingProxyServer { public ValidatingProxyServer withPort(int port) { checkArgument(port > 0, "Must have port greater than zero."); this.serverPort = port; return this; } }
ValidatingProxyServer { public ValidatingProxyServer withPort(int port) { checkArgument(port > 0, "Must have port greater than zero."); this.serverPort = port; return this; } ValidatingProxyServer(HttpValidator... validators); }
ValidatingProxyServer { public ValidatingProxyServer withPort(int port) { checkArgument(port > 0, "Must have port greater than zero."); this.serverPort = port; return this; } ValidatingProxyServer(HttpValidator... validators); void start(); boolean isStarted(); void stop(); String getHostName(); int getPort(); ValidatingProxyServer withPort(int port); int getSuccessCount(); void resetSuccessCount(); }
ValidatingProxyServer { public ValidatingProxyServer withPort(int port) { checkArgument(port > 0, "Must have port greater than zero."); this.serverPort = port; return this; } ValidatingProxyServer(HttpValidator... validators); void start(); boolean isStarted(); void stop(); String getHostName(); int getPort(); ValidatingProxyServer withPort(int port); int getSuccessCount(); void resetSuccessCount();  }