📄 defaultconfigtest.java
字号:
package com.easyjf.web.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import junit.framework.TestCase;
public class DefaultConfigTest extends TestCase {
public void testLoadConfig()
{
InputStream[] configures=new InputStream[2];
try{
//System.out.println(new File(".").getAbsolutePath());
configures[0]=new FileInputStream(new File("webapps/WEB-INF/easyjf-web1.xml"));
configures[1]=new FileInputStream(new File("webapps/WEB-INF/easyjf-web2.xml"));
DefaultWebConfig config=new DefaultWebConfig();
config.setConfigures(configures);
config.init();
}
catch(Exception e)
{
e.printStackTrace();
fail("测试出现了错误!");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -