【原】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(){ } }