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 {

    }

    public void testGetRandomWords() throws Exception {

    }

    public void testCreateWritingTest() throws Exception {

    }

    public void testCretePracticeTest() throws Exception {

    }

}
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(););
    }

}
Add photo_DiagramOfProject