Package com.ibatis.jpetstore.persistence

Source Code of com.ibatis.jpetstore.persistence.DaoManagerTest

package com.ibatis.jpetstore.persistence;

import com.ibatis.dao.client.DaoManager;
import com.ibatis.jpetstore.persistence.iface.CategoryDao;
import junit.framework.TestCase;

public class DaoManagerTest extends TestCase {

  public void testShouldGetDaoManagerInstance() {
    DaoManager daoMgr = DaoConfig.getDaoManager();
    assertNotNull(daoMgr);
    CategoryDao catDao = (CategoryDao) daoMgr.getDao(CategoryDao.class);
    assertNotNull(catDao);
  }

}
TOP

Related Classes of com.ibatis.jpetstore.persistence.DaoManagerTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.