简体   繁体   English

MVC和Spring MVC单元测试

[英]MVC and Spring MVC Unit Testing

Can i Unit test MVC framework using Spring MVC Unit testing.. if it is possible, what setup do i need to do? 我可以使用Spring MVC单元测试对MVC框架进行单元测试吗。如果可能,我需要做哪些设置?
I want to do only annotation testing. 我只想做注释测试。
If it's possible. 如果它是可能的。 Sorry for a noob question, I'm really having a hard time figuring this out. 很抱歉遇到一个菜鸟问题,我真的很难解决这个问题。

是的,使用Spring-MVC测试框架对Spring MVC层进行测试提供了很好的支持- 此处有更多详细信息-http : //static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/ testing.html#弹簧MVC测试框架

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM