📄 commonmethodtest.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 + -