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

📄 testfile.java

📁 一个采用J2EE技术实现的企业协同工作台
💻 JAVA
字号:
package common.work.test;

import java.sql.Date;

import common.work.bean.Fileaa;
import common.work.dao.FileaaDAO;
import common.work.dao.FileaaDAOImpl;

import junit.framework.TestCase;

public class TestFile extends TestCase {
	
	//测试用户上传文件的Dao类
	private FileaaDAO fileDao;
	protected void setUp() throws Exception {
		// TODO Auto-generated method stub
		super.setUp();
		fileDao = new FileaaDAOImpl();
	}
    public void testsave(){
    	Fileaa file = new Fileaa();
    	file.setFilelocate("wwowwo");
    	file.setFilename("wwww");
    	fileDao.save(file);
    }
    
	/* public void testfindByfilename(){
    	Fileaa file = fileDao.findByfilename("hahaha");
    	System.out.println("文件描述:"+file.getFilelocate());
    }*/
	
	/*public void testUpdate(){
		Fileaa file = fileDao.findById(3);
		file.setUploadperson("wuhao");
		fileDao.Update(file);
	}*/
	
	/*public void testfindByid(){
		Fileaa file = fileDao.findById(1);
		System.out.println("文件描述:"+file.getFiledescription());
	}*/
	
	/*public void testfindByuploadperson(){
		Fileaa file = fileDao.findByuploadperson("wuhao").get(0);
		System.out.println("文件描述:"+file.getFilename());
	}*/
	
	/*public void testdelete(){
		Fileaa file =fileDao.findById(2);
		fileDao.delete(file);
	}*/	
}

⌨️ 快捷键说明

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