ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From friendVU admin <maill...@friendvu.com>
Subject Re: Dao unit testing?
Date Thu, 10 Feb 2005 15:49:18 GMT
I just do JUnit, ex:
    public static void main(String args[]) {
        junit.textui.TestRunner.run(ClientDaoTest.class);
    }
    public static void testInsert() {
        Map m = new HashMap();
        m.put(ZConst.MODE, ZConst.INSERT);
        m.put(ZConst.MAPID, "MembrSql.insertMember");
       
        m.put("usr_email_id", "some");
        m.put("passwrd", "some");
        m.put("postal_num", "some");
       
        m.put("name_f", null);
        m.put("name", "some");
        m.put("name_handle", "some");
        m.put("occupation", "some");
   
       
        SqlMapHelper smh = SqlMapFac.getInstance();
        smh.execute(m);
       
    }

.V

Nathan Maves wrote:

>   How do most of you test your database layer?
>
> Nathan
>
>
>


Mime
View raw message