跟我学Shiro - 张开涛SpringMVC http://www.iteye.com/blogs/subjects/kaitao-springmvc 客户端 此处使用 SpringMVC 提供的 RestTemplate 进行测试。请参考如下文章进行学习: Spring MVC 测试框架详解——客户端测试 http://jinnianshilongnian.iteye.com/blog/2007180 public class ClientTest { private static Server server; private RestTemplate restTemplate = new RestTemplate(); @BeforeClass public static void beforeClass() throws Exception { .queryParams(params).build().toUriString(); ResponseEntity responseEntity = restTemplate.getForEntity(url, String.class); Assert.assertEquals("hello" + param11 + param12 + param20 码力 | 219 页 | 4.16 MB | 10 月前3
共 1 条
- 1
 













