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

📄 commonmethodtest.java

📁 电信的网厅的整站代码
💻 JAVA
字号:
package com.doone.fj1w.common;

import java.io.File;

import junit.framework.TestCase;

public class CommonMethodTest extends TestCase {

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

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

	public void testGetBody() {
		try {
			if(true) {return;}
			File file = CommonMethod
					.ganericFile("F://pricture//me//ͼƬ 018.jpg");
			byte[] image = CommonMethod.getBody(file, "GBK");
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	public void testGanericPath() {
		try {
			if(true) {return;}
			CommonMethod.ganericPaths("E://develop//tempworkprj//manager//Cache//storeimage//");
			com.doone.fj1w.common.CommonMethod.ganericFile("E://develop//tempworkprj//manager//Cache//storeimage//","1.text");
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	public void testIsFixName() {
		CommonMethod.isFixName("gif", new String[] {"fdsfa/fds/sfdsfsaf.GIF","jpg"});
	}
	
}

⌨️ 快捷键说明

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