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

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

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

origin: de.otto/jlineup-core

public static JobConfig.Builder exampleConfigBuilder() {
  return configBuilder()
      .withUrls(ImmutableMap.of("http://www.example.com",
          new UrlConfig(
              ImmutableList.of("/", "someOtherPath"),
              DEFAULT_MAX_DIFF,
              ImmutableList.of(
                  new Cookie("exampleCookieName", "exampleValue", "http://www.example.com", "/", new Date(1000L), true)
              ),
              ImmutableMap.of("live", "www"),
              ImmutableMap.of("exampleLocalStorageKey", "value"),
              ImmutableMap.of("exampleSessionStorageKey", "value"),
              ImmutableList.of(600, 800, 1000),
              DEFAULT_MAX_SCROLL_HEIGHT,
              DEFAULT_WAIT_AFTER_PAGE_LOAD,
              DEFAULT_WAIT_AFTER_SCROLL,
              DEFAULT_WAIT_FOR_NO_ANIMATION_AFTER_SCROLL,
              DEFAULT_WARMUP_BROWSER_CACHE_TIME,
              "console.log('This is JavaScript!')",
              DEFAULT_WAIT_FOR_FONTS_TIME,
              new HttpCheckConfig(true),
              DEFAULT_MAX_COLOR_DIFF_PER_PIXEL,
              false
          )));
}
origin: otto-de/jlineup

  private JobConfig createTestConfig() {
    return configBuilder()
        .withUrls(ImmutableMap.of("http://www.example.com",
            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();
  }
}
origin: otto-de/jlineup

  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();

  }
}
origin: otto-de/jlineup

.withUrls(ImmutableMap.of("http://testurl", urlConfig))
.withWindowHeight(100)
.build();
origin: otto-de/jlineup

.withUrls(ImmutableMap.of("http://testurl", urlConfig))
.withWindowHeight(100)
.build();
origin: otto-de/jlineup

.withUrls(ImmutableMap.of("http://testurl", urlConfig))
.withWindowHeight(100)
.build();
origin: otto-de/jlineup

.withUrls(ImmutableMap.of("testurl", urlConfig))
.withWindowHeight(100)
.build();
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);
}
origin: otto-de/jlineup

@Test
public void shouldReturn422IfConfigValidationFails() throws Exception {
  // given
  JobConfig jobConfig = JobConfig.copyOfBuilder(exampleConfig()).withUrls(null).build();
  when(jLineupService.startBeforeRun(jobConfig)).thenThrow(new ConfigValidationException("Validation message"));
  // when
  ResultActions result = mvc
      .perform(post("/runs")
          .content(JobConfig.prettyPrint(jobConfig))
          .contentType(MediaType.APPLICATION_JSON));
  // then
  result
      .andExpect(status().isUnprocessableEntity())
      .andExpect(content().string("\"Validation message\""));
}
origin: otto-de/jlineup

private JobConfig localTestConfig(String endpoint, Browser.Type browser, boolean checkForErrors, UrlConfig urlConfig) {
  return JobConfig.configBuilder().withCheckForErrorsInLog(checkForErrors).withUrls(ImmutableMap.of("http://localhost:" + port + "/" + endpoint, urlConfig)).withBrowser(browser).build();
}
origin: de.otto/jlineup-core

public static JobConfig defaultConfig(String url) {
  return configBuilder().withUrls(ImmutableMap.of(url, new UrlConfig())).build();
}
origin: otto-de/jlineup

@Before
public void setup() {
  initMocks(this);
  runConfig = RunStepConfig.jLineupRunConfigurationBuilder().withWorkingDirectory("src/test/resources").build();
  jobConfig = configBuilder()
      .withUrls(ImmutableMap.of(
          "http://url",
          new UrlConfig(ImmutableList.of("/"), 0.05f, null, null, null, null, ImmutableList.of(1001), 10000, 2, 0, 0, 0, null, 5, new HttpCheckConfig(),0, false)))
      .withWindowHeight(WINDOW_HEIGHT)
      .build();
  testee = new ScreenshotsComparator(runConfig, jobConfig, fileService, imageService);
}
de.otto.jlineup.configJobConfig$BuilderwithUrls

Popular methods of JobConfig$Builder

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
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