private JobConfig createJobConfigWithUrlAndName(String url, String name) { return configBuilder() .withName(name) .withUrls(ImmutableMap.of(url, new UrlConfig( ImmutableList.of("/"), 0, ImmutableList.of(), ImmutableMap.of(), ImmutableMap.of(), ImmutableMap.of(), ImmutableList.of(600), 100000, 0, 0, 0, DEFAULT_WARMUP_BROWSER_CACHE_TIME, null, 0, new HttpCheckConfig(), 0, false ))) .build(); } }
public static Builder copyOfBuilder(JobConfig jobConfig) { return configBuilder() .withName(jobConfig.name) .withUrls(jobConfig.urls) .withHttpCheck(jobConfig.httpCheck) .withBrowser(jobConfig.browser) .withGlobalWaitAfterPageLoad(jobConfig.globalWaitAfterPageLoad) .withPageLoadTimeout(jobConfig.pageLoadTimeout) .withWindowHeight(jobConfig.windowHeight) .withThreads(jobConfig.threads) .withScreenshotRetries(jobConfig.screenshotRetries) .withReportFormat(jobConfig.reportFormat) .withGlobalTimeout(jobConfig.globalTimeout) .withDebug(jobConfig.debug) .withLogToFile(jobConfig.logToFile) .withCheckForErrorsInLog(jobConfig.checkForErrorsInLog); }