<commit_before>package info.idgst.selenium;

import info.idgst.IdgstServer;
import org.fluentlenium.adapter.FluentTest;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.WebIntegrationTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Abstract test for Selenium tests.
 *
 * @author <NAME>.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = IdgstServer.class)
@WebIntegrationTest(randomPort = true)
public class AbstractFluentIntegrationTest extends FluentTest {

    @Value("${local.server.port}")
    protected int serverPort;

    @Override
    public WebDriver getDefaultDriver() {
        return new PhantomJSDriver();
    }

    @Override
    public String getDefaultBaseUrl() {
        return "http://localhost:" + serverPort;
    }
}<commit_msg>Issue #65 POC: Migrate to Java   - add abstrct for base selenium test<commit_after>package info.idgst.selenium;

import info.idgst.IdgstServer;
import org.fluentlenium.adapter.FluentTest;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.WebIntegrationTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Abstract test for Selenium tests.
 *
 * @author <NAME>.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = IdgstServer.class)
@WebIntegrationTest(randomPort = true)
public abstract class AbstractFluentIntegrationTest extends FluentTest {

    @Value("${local.server.port}")
    protected int serverPort;

    @Override
    public WebDriver getDefaultDriver() {
        return new PhantomJSDriver();
    }

    @Override
    public String getDefaultBaseUrl() {
        return "http://localhost:" + serverPort;
    }
}
{'fraction_non_alphanumeric': 0.09986320109439124, 'fraction_numerical': 0.00364797081623347, 'mean_word_length': 5.1456582633053225, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1119368', 'n_tokens_mistral': 662, 'n_tokens_neox': 637, 'n_words': 122}