【原】Spring测试类代码

package test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.using.api.service.GoodsServiceImpl;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:config/spring.xml")
public class AspectJTest {

@Autowired
GoodsServiceImpl goddsService;

@Test
public void test1(){

}
}

 

 

posted @ 2019-07-11 10:30  我没K~  阅读(984)  评论(0编辑  收藏  举报