Java中class-类注释模板
来源:互联网 发布:编写程序的软件 编辑:程序博客网 时间:2024/06/04 18:14
/** * Author by ${USER}, Email sunmlcn@163.com, Date on ${DATE}. * PS: Not easy to write code, please indicate. */
/** * Created by ${USER} on ${DATE}. */
Bracketsjunit generator模板 ==测试模板
######################################################################################## ## ## Available variables: ## $entryList.methodList - List of method composites ## $entryList.privateMethodList - List of private method composites ## $entryList.fieldList - ArrayList of class scope field names ## $entryList.className - class name ## $entryList.packageName - package name ## $today - Todays date in MM/dd/yyyy format ## ## MethodComposite variables: ## $method.name - Method Name ## $method.signature - Full method signature in String form ## $method.reflectionCode - list of strings representing commented out reflection code to access method (Private Methods) ## $method.paramNames - List of Strings representing the method's parameters' names ## $method.paramClasses - List of Strings representing the method's parameters' classes ## ## You can configure the output class name using "testClass" variable below. ## Here are some examples: ## Test${entry.ClassName} - will produce TestSomeClass ## ${entry.className}Test - will produce SomeClassTest ## ######################################################################################## ## #macro (cap $strIn)$strIn.valueOf($strIn.charAt(0)).toUpperCase()$strIn.substring(1)#end ## Iterate through the list and generate testcase for every entry. #foreach ($entry in $entryList) #set( $testClass="${entry.className}Test") ## package $entry.packageName; import org.junit.Test; import org.junit.Before; import org.junit.After; public class $testClass { @Before public void before() throws Exception { } @After public void after() throws Exception { }#foreach($method in $entry.methodList) @Test public void test#cap(${method.name})() throws Exception { //TODO: Test goes here... }#end #foreach($method in $entry.privateMethodList) @Test public void test#cap(${method.name})() throws Exception { //TODO: Test goes here... #foreach($string in $method.reflectionCode) $string #end }#end } #end
大数据学习资料 :http://www.cnblogs.com/zhangyinhua/p/7652686.html
idea激活文档名 : IntelliJIDEALicenseServer
激活地址 http://127.0.0.1:1017
http://www.cnblogs.com/baibaomen/p/sso.html
阅读全文
0 0
- Java中class-类注释模板
- Java 类注释模板
- Java 类注释模板
- Eclipse中java注释模板
- 在Eclipse中创建java类的注释模板
- eclipse中添加Java代码注释模板
- myeclipse中java代码注释模板问题
- Eclipse 中Java注释模板设置方法
- Java注释和注释模板
- Java注释和注释模板
- myeclipse中类代码的注释模板
- eclipse中给类制定注释模板
- eclipse新建Java类注释模板
- Eclipse Java注释模板
- JAVA代码注释模板
- java注释模板
- java注释模板
- Java代码注释模板
- Linux内核配置系统
- php理解接口(1)
- Github一千多本电子书
- foreach便利二维数组,键值对,以值为键变为三维数组
- 鸵鸟心态直接影响你的收益
- Java中class-类注释模板
- 根据轮廓的位置调整正极点的位置
- 内存溢出 出现原因及解决方案
- python中使用turtle库画一个蟒蛇
- Maximum Product Subarray:数组中最大连续区间求积
- 欢迎使用CSDN-markdown编辑器
- 创建简单的I/O文件
- 游戏试玩平台
- jquery中的prop和attr