为了学习最新计算机知识:我决定用英语写文档。并多看英文文档。
today It take me lots of time to find how to make TestCase in IntelliJ7.
You could follow the step as bellow:
1. Click Settings | File Templates.
2. In the Templates tab, create new template and name it “JUnit 4 Test Class” or anything you like.
3. Paste the following code fragment into the text box:
if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import junit.framework.TestCase;
#parse("File Header.java")
public class ${Name} extends TestCase{
}
Ps, How to make normal folder to Sources Folder?
I find one way:
1.Project Setting --> Modules--> 最右边--> right click the Folder you wanna make.
It'll show --|
|----Extended
|
|----Sources
|
|----TestSource
You know how to do, don't you, if u go trouble. email me:cafecheng@163.com