<commit_before>package glossary.engine.service;

import junit.framework.TestCase;

/**
 * Created by LeM on 05.07.2017.
 */
public class TestDAOTest extends TestCase {

    public void testGetWordCount() throws Exception {
        TestDAO testDAO = new TestDAO();

        assertEquals(0, testDAO.getWordCount(-1));

        // TODO vytvořit seznam a ID uložit do idList
        int idList = 1;
        assertEquals(10, testDAO.getWordCount(idList));
    }

    public void testGetRandomWords() throws Exception {
        TestDAO ... = new TestDAO();

        assertEquals(testGetRandomWords(););
    }

    public void testCreateWritingTest() throws Exception {
        TestDAO ... = new TestDAO();

        assertEquals(testCreateWritingTest(););

    }

    public void testCretePracticeTest() throws Exception {
        TestDAO ... = new TestDAO();

        assertEquals(testCretePracticeTest(););
    }

}<commit_msg>add_ unit tests<commit_after>package glossary.engine.service;

import junit.framework.TestCase;

/**
 * Created by LeM on 05.07.2017.
 */
public class TestDAOTest extends TestCase {

    public void testGetWordCount() throws Exception {
        TestDAO testDAO = new TestDAO();

        assertEquals(0, testDAO.getWordCount(-1));

        // TODO vytvořit seznam a ID uložit do idList
        int idList = 1;
        assertEquals(10, testDAO.getWordCount(idList));
    }

    public void testGetRandomWords() throws Exception {
        TestDAO testDAO  = new TestDAO();

        //assertEquals(10, testDAO.getRandomWords(-1));
    }

    public void testCreateWritingTest() throws Exception {
        TestDAO testDAO = new TestDAO();

        //assertEquals(10, testDAO.(-1));

    }

    public void testCretePracticeTest() throws Exception {
        TestDAO testDAO = new TestDAO();

       // assertEquals(testCretePracticeTest(););
    }

}
{'fraction_non_alphanumeric': 0.10557341907824223, 'fraction_numerical': 0.01714898177920686, 'mean_word_length': 2.771717171717172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3745841', 'n_tokens_mistral': 606, 'n_tokens_neox': 549, 'n_words': 137}