@Test(expected = InvalidParameterException.class) public void testConnectionTimeoutPropertyMoreThanMaxValue() { final int connectionTimeout = 300001; sut.setConnectionTimeOut(connectionTimeout); }
public final void setConnectionTimeOut(final int inConnectionTimeOut) { if (inConnectionTimeOut < MIN_TIMEOUT || inConnectionTimeOut > MAX_TIMEOUT) { throw new InvalidParameterException("Connection timeout must be between " + MIN_TIMEOUT + " and " + MAX_TIMEOUT); } connectionTimeOut = inConnectionTimeOut; }
ConnectionFacade { public final void setConnectionTimeOut(final int inConnectionTimeOut) { if (inConnectionTimeOut < MIN_TIMEOUT || inConnectionTimeOut > MAX_TIMEOUT) { throw new InvalidParameterException("Connection timeout must be between " + MIN_TIMEOUT + " and " + MAX_TIMEOUT); } connectionTimeOut = inConnectionTimeOut; } }
ConnectionFacade { public final void setConnectionTimeOut(final int inConnectionTimeOut) { if (inConnectionTimeOut < MIN_TIMEOUT || inConnectionTimeOut > MAX_TIMEOUT) { throw new InvalidParameterException("Connection timeout must be between " + MIN_TIMEOUT + " and " + MAX_TIMEOUT); } connectionTimeOut = inConnectionTimeOut; } ConnectionFacade(final List<ConnectionFacadeDecorator> inDecorators); }
ConnectionFacade { public final void setConnectionTimeOut(final int inConnectionTimeOut) { if (inConnectionTimeOut < MIN_TIMEOUT || inConnectionTimeOut > MAX_TIMEOUT) { throw new InvalidParameterException("Connection timeout must be between " + MIN_TIMEOUT + " and " + MAX_TIMEOUT); } connectionTimeOut = inConnectionTimeOut; } ConnectionFacade(final List<ConnectionFacadeDecorator> inDecorators); final List<Integer> getRedirectCodes(); final void setRedirectCodes(final List<Integer> inRedirectCodes); final String getProxyPort(); final void setProxyPort(final String inProxyPort); final String getProxyHost(); final void setProxyHost(final String inProxyHost); final int getConnectionTimeOut(); final void setConnectionTimeOut(final int inConnectionTimeOut); String downloadFile(final String url, final String inAccountId); int getImgHeight(final String url, final String inAccountId); int getImgWidth(final String url, final String inAccountId); String getHost(final String url); String getProtocol(final String url); String getPath(final String url); String getFinalUrl(final String url, final String inAccountId); int getExpectedDownloadFileLimit(); void setExpectedDownloadFileLimit(final int inExpectedDownloadFileLimit); int getMaximumDownloadFileLimit(); void setMaximumDownloadFileLimit(final int inMaximumDownloadFileLimit); }
ConnectionFacade { public final void setConnectionTimeOut(final int inConnectionTimeOut) { if (inConnectionTimeOut < MIN_TIMEOUT || inConnectionTimeOut > MAX_TIMEOUT) { throw new InvalidParameterException("Connection timeout must be between " + MIN_TIMEOUT + " and " + MAX_TIMEOUT); } connectionTimeOut = inConnectionTimeOut; } ConnectionFacade(final List<ConnectionFacadeDecorator> inDecorators); final List<Integer> getRedirectCodes(); final void setRedirectCodes(final List<Integer> inRedirectCodes); final String getProxyPort(); final void setProxyPort(final String inProxyPort); final String getProxyHost(); final void setProxyHost(final String inProxyHost); final int getConnectionTimeOut(); final void setConnectionTimeOut(final int inConnectionTimeOut); String downloadFile(final String url, final String inAccountId); int getImgHeight(final String url, final String inAccountId); int getImgWidth(final String url, final String inAccountId); String getHost(final String url); String getProtocol(final String url); String getPath(final String url); String getFinalUrl(final String url, final String inAccountId); int getExpectedDownloadFileLimit(); void setExpectedDownloadFileLimit(final int inExpectedDownloadFileLimit); int getMaximumDownloadFileLimit(); void setMaximumDownloadFileLimit(final int inMaximumDownloadFileLimit);  }