<commit_before>package tech.allegro.wildsnake.integration;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import tech.allegro.wildsnake.integration.Assertion.ShowCaseItemResultAssert;
import tech.allegro.wildsnake.integration.builders.ProductListBuilder;
import tech.allegro.wildsnake.product.repository.ProductRepository;
import tech.allegro.wildsnake.showcase.model.ShowcaseItem;
import tech.allegro.wildsnake.showcase.service.ShowcaseService;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
public class WildsnakeApplicationTests extends WildSnakeIntegrationTest {

    private static final int NUMBER_OF_SAVED_PRODUCTS = 6;

    @Autowired
    ShowcaseService showcaseService;

    @Autowired
    ProductRepository realProductRepository;

    private List<ShowcaseItem> result;

    @Test
    public void should_show_main_page() {
        // when
        ResponseEntity<String> entity = template.getForEntity("http://localhost:8080/", String.class);

        // then
        assert entity.getStatusCode() == HttpStatus.OK;
        assert entity.getBody().contains("Under construction");
//        assert entity.getBody().contains("price");
    }<commit_msg>snake-3-test | poprawki po PR<commit_after>package tech.allegro.wildsnake.integration;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import tech.allegro.wildsnake.integration.Assertion.ShowCaseItemResultAssert;
import tech.allegro.wildsnake.integration.builders.ProductListBuilder;
import tech.allegro.wildsnake.product.repository.ProductRepository;
import tech.allegro.wildsnake.showcase.model.ShowcaseItem;
import tech.allegro.wildsnake.showcase.service.ShowcaseService;

import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringJUnit4ClassRunner.class)
public class WildsnakeApplicationTests extends WildSnakeIntegrationTest {

    private static final int NUMBER_OF_SAVED_PRODUCTS = 6;

    @Autowired
    ShowcaseService showcaseService;

    @Autowired
    ProductRepository realProductRepository;

    private List<ShowcaseItem> result;

    @Test
    public void should_show_main_page() {
        // when
        ResponseEntity<String> entity = template.getForEntity("http://localhost:8080/", String.class);

        // then
        assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
        assertThat(entity.getBody()).contains("Under construction");
//        assertThat(entity.getBody()).contains("price");
    }
{'fraction_non_alphanumeric': 0.09631147540983606, 'fraction_numerical': 0.005806010928961749, 'mean_word_length': 5.102083333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7253010', 'n_tokens_mistral': 860, 'n_tokens_neox': 824, 'n_words': 132}