`

junit4定义测试集TestSuite Declaration

阅读更多

转载自    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!
}
 
分享到:
评论
1 楼 tuti 2010-04-15  
Junit TestSuite 还真是怪啊

相关推荐

Global site tag (gtag.js) - Google Analytics