KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > documan > dao > DocumentDAOTest


1 package org.contineo.documan.dao;
2
3 import java.util.Collection JavaDoc;
4 import junit.framework.TestCase;
5
6 /**
7  * Created on 01.09.2004
8  * @author Michael Scholz
9  */

10 public class DocumentDAOTest extends TestCase {
11     
12     private DocumentDAO docDao;
13
14     public static void main(String JavaDoc[] args) {
15         junit.swingui.TestRunner.run(DocumentDAOTest.class);
16     }
17
18     /*
19      * @see TestCase#setUp()
20      */

21     protected void setUp() throws Exception JavaDoc {
22         docDao = new DocumentDAO();
23     }
24
25     public void testFindByKeyword() {
26         Collection JavaDoc coll = docDao.findMenuIdByKeyword("Alpha");
27         System.out.println(coll.size());
28         assertNotNull(coll);
29     }
30
31 }
32
Popular Tags