@Test public void testValidate_supportedVersions_succeeds() { ReportingConfiguration config = new Builder() .skipReportHeader(true) .skipColumnHeader(true) .skipReportSummary(true) .includeZeroImpressions(true) .useRawEnumValues(true) .reportDownloadTimeout(0) .build(); config.validate("v201809"); assertTrue("Validation should succeed for v201809", true); }
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();  }