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!
}
 

你可能感兴趣的:(JUnit,idea)