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

📄 mysqlfixture.java

📁 一个功能较为完善的论坛
💻 JAVA
字号:
/*
 * XP Forum
 *	
 * Copyright (c) 2002-2003 RedSoft Group.  All rights reserved.
 *
 */
package org.redsoft.forum.fixture;

import org.apache.struts.util.GenericDataSource;
import org.redsoft.forum.dao.mysql.MysqlDAOFactory;
import org.redsoft.forum.dao.DAOFactory;

/**
 * Fixture for MySQL. Must be used for all MySQL DAO test cases
 *
 * @author <a href="mailto:jwtronics@yahoo.com">John Wong</a>
 *
 * @version $Id: MysqlFixture.java,v 1.1.1.1 2003/07/08 08:25:17 cinc Exp $
 */
public class MysqlFixture {
	private JdbcFixture jdbcFixtureIns = new JdbcFixture();

	public void setUp() throws Exception {
		jdbcFixtureIns.setUp();

		// factory should init with data source
		DAOFactory factory = DAOFactory.getInstance();
		factory.init(jdbcFixtureIns.getDataSource());
	}

	public void tearDown() throws Exception {
		jdbcFixtureIns.tearDown();
	}

}//EOC

⌨️ 快捷键说明

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