问题描述
- JUit 遇到的问题 大神进
-
package test;import org.junit.*;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;public class Test1 {
//AbstractApplicationContext context =null; @Before public void before() { System.out.print("b"); //context =new ClassPathXmlApplicationContext("applicationContext,xml"); } @After public void after() { System.out.print("a"); //context.close(); } @Test public void test() { System.out.print("t"); }
}
不把注释去掉输出是 bta
但是注释去掉了 就是ba了
@TEst怎么无视掉了
时间: 2024-12-30 00:34:26