junit « dao « Java Database Q&A





1. writing test case for a DAO on a J2ee Application    stackoverflow.com

I am trying to write some test cases for my DAO classes in a J2EE applications. Methods in my DAO classes try to get connection to the Database based on ...

2. Jmock mock DAO object    stackoverflow.com

I wrote a method that retrieves certain list of strings, given a correct string key. Now when I create a list(the one to be retrieved by method descibed in previous sentence) ...

3. JUnit and DAO    coderanch.com

import java.sql.ResultSet; import junit.framework.AssertionFailedError; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /* * Created on Dec 29, 2004 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ /** * @author vkumar * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class DAOTestClient ...