@Test public void testValidate_negativeTimeout_fails() { ReportingConfiguration config = new Builder() .skipReportHeader(true) .skipColumnHeader(true) .reportDownloadTimeout(-1) .build(); thrown.expect(IllegalArgumentException.class); thrown.expectMessage("timeout"); config.validate(null); }
public void validate(@Nullable String version) { if (reportDownloadTimeout != null) { Preconditions.checkArgument( reportDownloadTimeout >= 0, "Report download timeout is < 0: %s", reportDownloadTimeout); } }
ReportingConfiguration { public void validate(@Nullable String version) { if (reportDownloadTimeout != null) { Preconditions.checkArgument( reportDownloadTimeout >= 0, "Report download timeout is < 0: %s", reportDownloadTimeout); } } }
ReportingConfiguration { public void validate(@Nullable String version) { if (reportDownloadTimeout != null) { Preconditions.checkArgument( reportDownloadTimeout >= 0, "Report download timeout is < 0: %s", reportDownloadTimeout); } } private  ReportingConfiguration(Builder builder); }
ReportingConfiguration { public void validate(@Nullable String version) { if (reportDownloadTimeout != null) { Preconditions.checkArgument( reportDownloadTimeout >= 0, "Report download timeout is < 0: %s", reportDownloadTimeout); } } private  ReportingConfiguration(Builder builder); @Nullable Boolean isSkipReportHeader(); @Nullable Boolean isSkipColumnHeader(); @Nullable Boolean isSkipReportSummary(); @Nullable Boolean isIncludeZeroImpressions(); @Nullable Boolean isUseRawEnumValues(); @Nullable Integer getReportDownloadTimeout(); void validate(@Nullable String version); @Override String toString(); }
ReportingConfiguration { public void validate(@Nullable String version) { if (reportDownloadTimeout != null) { Preconditions.checkArgument( reportDownloadTimeout >= 0, "Report download timeout is < 0: %s", reportDownloadTimeout); } } private  ReportingConfiguration(Builder builder); @Nullable Boolean isSkipReportHeader(); @Nullable Boolean isSkipColumnHeader(); @Nullable Boolean isSkipReportSummary(); @Nullable Boolean isIncludeZeroImpressions(); @Nullable Boolean isUseRawEnumValues(); @Nullable Integer getReportDownloadTimeout(); void validate(@Nullable String version); @Override String toString();  }