Search in sources :

Example 6 with UrlConfig

use of de.otto.jlineup.config.UrlConfig in project jlineup by otto-de.

the class ScreenshotsComparatorTest method setup.

@Before
public void setup() {
    initMocks(this);
    parameters = new Parameters();
    JCommander jCommander = new JCommander(parameters);
    jCommander.parse("-d", "src/test/resources/");
    config = 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))).withWindowHeight(WINDOW_HEIGHT).build();
    testee = new ScreenshotsComparator(parameters, config, fileService, imageService);
}
Also used : Parameters(de.otto.jlineup.config.Parameters) UrlConfig(de.otto.jlineup.config.UrlConfig) JCommander(com.beust.jcommander.JCommander) Before(org.junit.Before)

Aggregations

UrlConfig (de.otto.jlineup.config.UrlConfig)6 Config (de.otto.jlineup.config.Config)4 Parameters (de.otto.jlineup.config.Parameters)3 Test (org.junit.Test)3 Browser (de.otto.jlineup.browser.Browser)2 File (java.io.File)2 JCommander (com.beust.jcommander.JCommander)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 BrowserUtils (de.otto.jlineup.browser.BrowserUtils)1 Cookie (de.otto.jlineup.config.Cookie)1 FileService (de.otto.jlineup.file.FileService)1 ImageService (de.otto.jlineup.image.ImageService)1 BufferedImage (java.awt.image.BufferedImage)1 IOException (java.io.IOException)1 Paths (java.nio.file.Paths)1 java.util (java.util)1 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1