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

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

Best Java code snippets using de.otto.jlineup.config.JobConfig$Builder.withReportFormat (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$BuilderwithReportFormat

Popular methods of JobConfig$Builder

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
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