标签:blog io ar sp java on 2014 log bs
package test.v2; 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.AbstractJUnit4SpringContextTests; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import cn.uihome.service.product.ProductAddressManager; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ "classpath:beans-*.xml" }) public class SearchAPITest extends AbstractJUnit4SpringContextTests { @Autowired ProductAddressManager addressManager; @Test public void testMaxPrice(){ System.out.println(addressManager.getProductMaxPrice()); } }
标签:blog io ar sp java on 2014 log bs
原文地址:http://blog.csdn.net/hackcoder/article/details/41693341