<commit_before>package es.craftsmanship.toledo.katangapp.services;

import es.craftsmanship.toledo.katangapp.models.BusStopResult;
import es.craftsmanship.toledo.katangapp.models.QueryResult;

import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;
import org.junit.Test;

/**
 * @author <NAME>
 */
public class KatangaResponseWrapperTest {

    @Test
    public void testConstructorFromInteger() {
        KatangaResponseWrapper<Integer> katangaResponseWrapper = new KatangaResponseWrapper<>(
            new Integer(1000));

        Integer response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response instanceof Integer);
        Assert.assertEquals(1000, response.intValue());
    }

    @Test
    public void testConstructorFromObject() {
        List<BusStopResult> busStopResults = new ArrayList<>();

        busStopResults.add(new BusStopResult());

        QueryResult queryResult = new QueryResult(busStopResults);

        KatangaResponseWrapper<QueryResult> katangaResponseWrapper = new KatangaResponseWrapper<>(
            queryResult);

        QueryResult response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response instanceof QueryResult);
        Assert.assertEquals(1, response.getResults().size());
    }

    @Test
    public void testConstructorFromString() {
        KatangaResponseWrapper<String> katangaResponseWrapper = new KatangaResponseWrapper<>(
            "Hello World!");

        String response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response instanceof String);
        Assert.assertEquals("Hello World!", response);
    }

}<commit_msg>[#69] apply lint suggestions<commit_after>package es.craftsmanship.toledo.katangapp.services;

import es.craftsmanship.toledo.katangapp.models.BusStopResult;
import es.craftsmanship.toledo.katangapp.models.QueryResult;

import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;
import org.junit.Test;

/**
 * @author <NAME>
 */
public class KatangaResponseWrapperTest {

    @Test
    public void testConstructorFromInteger() {
        KatangaResponseWrapper<Integer> katangaResponseWrapper = new KatangaResponseWrapper<>(1000);

        Integer response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response != null);
        Assert.assertEquals(1000, response.intValue());
    }

    @Test
    public void testConstructorFromObject() {
        List<BusStopResult> busStopResults = new ArrayList<>();

        busStopResults.add(new BusStopResult());

        QueryResult queryResult = new QueryResult(busStopResults);

        KatangaResponseWrapper<QueryResult> katangaResponseWrapper = new KatangaResponseWrapper<>(
            queryResult);

        QueryResult response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response != null);
        Assert.assertEquals(1, response.getResults().size());
    }

    @Test
    public void testConstructorFromString() {
        KatangaResponseWrapper<String> katangaResponseWrapper = new KatangaResponseWrapper<>(
            "Hello World!");

        String response = katangaResponseWrapper.getResponse();

        Assert.assertTrue(response != null);
        Assert.assertEquals("Hello World!", response);
    }

}
{'fraction_non_alphanumeric': 0.09857446163178647, 'fraction_numerical': 0.006066120715802244, 'mean_word_length': 3.7936046511627906, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4745053', 'n_tokens_mistral': 861, 'n_tokens_neox': 831, 'n_words': 164}