![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
test
杭州丹尼
这个作者很懒,什么都没留下…
展开
-
Junit测试Controller(MockMVC使用),传输@RequestBody数据解决办法
这里有个往后台传json的情况因为@RequestBody 作为参数,且需要json请看这篇http://www.cnblogs.com/0201zcr/p/5756642.html[quote]param:添加request的参数,如上面发送请求的时候带上了了pcode = root的参数。假如使用需要发送json数据格式的时将不能使用这种方式,可见后面被@Respo...原创 2017-07-20 16:37:14 · 4053 阅读 · 0 评论 -
使用MockMvc测试Spring mvc Controller
http://www.cnblogs.com/wade-xu/p/4311657.html使用MockMvc测试Spring mvc Controller原创 2017-07-21 14:33:56 · 95 阅读 · 0 评论 -
spring call controller junit
[code="java"]package com.sunrun.service;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;impo...原创 2017-09-12 21:26:52 · 100 阅读 · 0 评论 -
springboot的测试类的maven依赖
[quote] junit junit 4.12 org.springframework.boot spring-boot-starter-test test 2.0.2.RELEASE...原创 2018-07-13 15:08:10 · 4323 阅读 · 0 评论 -
springboot测试的maven dependency
[code="java"] com.googlecode.libphonenumber geocoder 2.15 com.googlecode.libphonenumber libphonenumber 6.3 com.googlecode.libphonenumbe...原创 2018-07-18 19:46:01 · 445 阅读 · 0 评论 -
spring boot web 测试
[quote]https://www.jianshu.com/p/8308fd12d0cb[/quote]原创 2018-08-03 11:44:59 · 186 阅读 · 0 评论