<commit_before><commit_msg>add test class for ListRandomizer<commit_after>package io.github.benas.jpopulator.randomizers;

import org.junit.Assert;
import org.junit.Before;

import java.util.Collection;

/**
 * Test class for {@link ListRandomizer}.
 *
 * @author <NAME> (<EMAIL>)
 */
public class ListRandomizerTest {

    private ListRandomizer<String> listRandomizer;

    @Before
    public void setUp() throws Exception {
        listRandomizer = new ListRandomizer<String>(new FirstNameRandomizer(), 3);
    }

    @org.junit.Test
    public void generatedListShouldNotBeEmpty() throws Exception {
        Collection<String> names = listRandomizer.getRandomValue();

        Assert.assertNotNull(names);
        Assert.assertEquals(3, names.size());
    }

}
{'fraction_non_alphanumeric': 0.1099476439790576, 'fraction_numerical': 0.002617801047120419, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3525741', 'n_tokens_mistral': 222, 'n_tokens_neox': 215, 'n_words': 49}