Home > AI > Backend > SpringBoot > Junit >

@Before

@Before, @After, @BeforeClass, @AfterClass,

打包测试

import  org.junit.runner.RunWith;
import  org.junit.runners.Suite;
​
 @RunWith(Suite. class )
 @Suite.SuiteClasses( {
         CalculatorTest. class ,
         SquareTest. class 
         } )
 public   class  AllCalculatorTests  {
 } 

Leave a Reply