<commit_before>package com.uwetrottmann.thetvdb.services;

import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.TestData;
import com.uwetrottmann.thetvdb.entities.SeriesResultsWrapper;
import org.junit.Test;
import retrofit2.Call;

import java.io.IOException;

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

public class SearchTest extends BaseTestCase {

    @Test
    public void test_series() throws IOException {
        Call<SeriesResultsWrapper> call = getTheTvdb().search().series(
                TestData.SERIES_NAME,
                null,
                null,
                TestData.LANGUAGE_EN
        );
        SeriesResultsWrapper series = call.execute().body();
        assertThat(series.data).hasSize(1);
    }
}<commit_msg>Better assert for search results.<commit_after>package com.uwetrottmann.thetvdb.services;

import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.TestData;
import com.uwetrottmann.thetvdb.entities.Series;
import com.uwetrottmann.thetvdb.entities.SeriesResultsWrapper;
import org.junit.Test;
import retrofit2.Call;

import java.io.IOException;

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

public class SearchTest extends BaseTestCase {

    @Test
    public void test_series() throws IOException {
        Call<SeriesResultsWrapper> call = getTheTvdb().search().series(
                TestData.SERIES_NAME,
                null,
                null,
                TestData.LANGUAGE_EN
        );
        SeriesResultsWrapper results = call.execute().body();
        for (Series series : results.data) {
            assertThat(series.id).isPositive();
            assertThat(series.seriesName).isNotEmpty();
        }
    }
}
{'fraction_non_alphanumeric': 0.09455587392550144, 'fraction_numerical': 0.0017191977077363897, 'mean_word_length': 3.032332563510393, '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': '677706', 'n_tokens_mistral': 510, 'n_tokens_neox': 513, 'n_words': 89}