Tabnine Logo
JobConfig$Builder.withDebug
Code IndexAdd Tabnine to your IDE (free)

How to use
withDebug
method
in
de.otto.jlineup.config.JobConfig$Builder

Best Java code snippets using de.otto.jlineup.config.JobConfig$Builder.withDebug (Showing top 2 results out of 315)

origin: otto-de/jlineup

@Test
public void shouldSanitizeJobConfig() throws BrowserNotInstalledException {
  //Given
  JobConfig evilJobConfig = copyOfBuilder(exampleConfig())
      .withBrowser(CHROME_HEADLESS)
      .withThreads(Integer.MAX_VALUE)
      .withDebug(true)
      .withLogToFile(true)
      .withReportFormat(1)
      .build();
  //When
  JobConfig sanitizedJobConfig = jLineupRunnerFactory.sanitizeJobConfig(evilJobConfig);
  //Then
  assertThat(sanitizedJobConfig.threads, is(jLineupWebProperties.getMaxThreadsPerJob()));
  assertThat(sanitizedJobConfig.debug, is(false));
  assertThat(sanitizedJobConfig.logToFile, is(false));
  assertThat(sanitizedJobConfig.reportFormat, is(DEFAULT_REPORT_FORMAT));
}
origin: de.otto/jlineup-core

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);
}
de.otto.jlineup.configJobConfig$BuilderwithDebug

Popular methods of JobConfig$Builder

  • build
  • withBrowser
  • withUrls
  • withCheckForErrorsInLog
  • withLogToFile
  • withName
  • withReportFormat
  • withThreads
  • withWindowHeight
  • <init>
  • withGlobalTimeout
  • withGlobalWaitAfterPageLoad
  • withGlobalTimeout,
  • withGlobalWaitAfterPageLoad,
  • withHttpCheck,
  • withPageLoadTimeout,
  • withScreenshotRetries

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • Option (scala)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now