您的位置:首页 > 产品设计 > UI/UE

junit4定义测试集TestSuite Declaration

2016-07-24 00:00 453 查看
转载自 Joe Ocampo http://www.lostechies.com/blogs/joe_ocampo/archive/2008/04/14/junit-4-testsuite-declaration.aspx
This is mainly for my own reference but if it helps people out there great! The documentation on this aspect of JUnit is very poor.

package agalliao.wealthManagment.domain;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({
investmentTests.class,
catalogTests.class,
markerTests.class
})
public class AllTests {
// why on earth I need this class, I have no idea!
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  junit IDEA