java测试类
`import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = “classpath:applicationContext.xml”)
public class Test {
@org.junit.Test
public void test(){
System.out.println("我不知道!");
}
}
`
java测试类
原文地址:https://www.cnblogs.com/SnowPrince/p/13997907.html