<commit_before>package ru.job4j.wait;

import org.junit.Test;

import java.util.Arrays;
import java.util.concurrent.*;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
 * Created by ZubovVP on 31.07.2018
 * <EMAIL>
 */
public class EmailNotificationTest {
    BlockingQueue<User> users = new LinkedBlockingDeque<>();

    @Test
    public void testEmailTo() throws InterruptedException {
        this.users.addAll(Arrays.asList(new User("Duke", "<EMAIL>"), new User("Kate", "<EMAIL>"), new User("Tom", "<EMAIL>")));
        EmailNotification em = new EmailNotification(this.users);
        em.start();
        Thread.sleep(3000);
        assertThat(this.users.size(), is(0));
    }
}<commit_msg>Ignore Test EmailNotificationTest.<commit_after>package ru.job4j.wait;

import org.junit.Ignore;
import org.junit.Test;

import java.util.Arrays;
import java.util.concurrent.*;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
 * Created by ZubovVP on 31.07.2018
 * <EMAIL>
 */
public class EmailNotificationTest {
    BlockingQueue<User> users = new LinkedBlockingDeque<>();

    @Ignore
    public void testEmailTo() throws InterruptedException {
        this.users.addAll(Arrays.asList(new User("Duke", "<EMAIL>"), new User("Kate", "<EMAIL>"), new User("Tom", "<EMAIL>")));
        EmailNotification em = new EmailNotification(this.users);
        em.start();
        Thread.sleep(50);
        assertThat(this.users.size(), is(0));
    }
}
{'fraction_non_alphanumeric': 0.15059445178335534, 'fraction_numerical': 0.017173051519154558, 'mean_word_length': 3.8870967741935485, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6960959', 'n_tokens_mistral': 493, 'n_tokens_neox': 477, 'n_words': 104}