欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

【原】Spring测试类代码

程序员文章站 2022-04-09 16:08:12
package test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.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(){

}
}