⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdaofactory.java

📁 ajax博客系统,该文件内容部分综合网上的资源,自己进行了改进,转载请注明 汪建伟
💻 JAVA
字号:
package cn.hxex.blog.test;

import junit.framework.TestCase;
import cn.hxex.blog.dao.*;

public class TestDaoFactory extends TestCase {

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testDaoFactory(){
		IUserDAO userDAO = (IUserDAO) DaoFactory.getDao("userDao");
		assertNotNull("userDAO is Null!", userDAO);
		
		IMessageDAO messageDAO = (IMessageDAO) DaoFactory.getDao("messageDao");
		assertNotNull("messageDAO is Null!", messageDAO);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -