<commit_before>package de.ahus1.bdd;

import com.tngtech.jgiven.annotation.ScenarioStage;
import com.tngtech.jgiven.junit.ScenarioTest;
import de.ahus1.bdd.stage.GivenStartPage;
import de.ahus1.bdd.stage.ThenResultPage;
import de.ahus1.bdd.stage.ThenStartPage;
import de.ahus1.bdd.stage.WhenStartPage;
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;

@RunWith(Arquillian.class)
public class StartPageFeature extends ScenarioTest<GivenStartPage, WhenStartPage, ThenStartPage> {

    @Drone
    protected WebDriver browser;

    // here we inject a 4th scenario stage using the @ScenarioStage annotation
    @ScenarioStage
    private ThenResultPage thenResultPage;

    @Before
    public void setup() {
        browser.manage().window().setSize(new Dimension(1200,800));
    }

    /**
     * The is the very simple test.
     */
    @Test
    public void should_show_the_start_page() {
        given().the_start_page_is_opened_in_browser();
        then().the_page_title_is("Willkommen!");
    }

    /**
     * This shows the usage of a 4th stage that is injected using @ScenarioStage
     */
    @Test
    public void should_have_working_search_capability() {
        given().the_start_page_is_opened_in_browser();
        when().searching_for("hystrix");
        thenResultPage
            .then().the_result_page_shows_a_result_count_of(3);<commit_msg>replacing arquillian runner with a class rule<commit_after>package de.ahus1.bdd;

import com.tngtech.jgiven.annotation.ScenarioStage;
import com.tngtech.jgiven.junit.ScenarioTest;
import de.ahus1.bdd.stage.GivenStartPage;
import de.ahus1.bdd.stage.ThenResultPage;
import de.ahus1.bdd.stage.ThenStartPage;
import de.ahus1.bdd.stage.WhenStartPage;
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.ArquillianTest;
import org.jboss.arquillian.junit.ArquillianTestClass;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebDriver;

public class StartPageFeature extends ScenarioTest<GivenStartPage, WhenStartPage, ThenStartPage> {

    @ClassRule
    public static ArquillianTestClass arquillianTestClass = new ArquillianTestClass();

    @Rule
    public ArquillianTest arquillianTest = new ArquillianTest();

    @Drone
    protected WebDriver browser;

    // here we inject a 4th scenario stage using the @ScenarioStage annotation
    @ScenarioStage
    private ThenResultPage thenResultPage;

    @Before
    public void setup() {
        browser.manage().window().setSize(new Dimension(1200, 800));
    }

    /**
     * The is the very simple test.
     */
    @Test
    public void should_show_the_start_page() {
        given().the_start_page_is_opened_in_browser();
        then().the_page_title_is("Willkommen!");
    }

    /**
     * This shows the usage of a 4th stage that is injected using @ScenarioStage
     */
    @Test
    public void should_have_working_search_capability() {
        given().the_start_page_is_opened_in_browser();
        when().searching_for("hystrix");
        thenResultPage
                .then().the_result_page_shows_a_result_count_of(3);
{'fraction_non_alphanumeric': 0.09729570840681952, 'fraction_numerical': 0.008818342151675485, 'mean_word_length': 3.9318840579710144, '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': '2404469', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1083, 'n_words': 210}