Test

  • Published on
    这篇Deck是近期对RSpec测试框架的一个Session总结,参考了RSpec官方文档那个和Better Rspec的介绍,对RSpec的一些简单用法和最佳时间进行了介绍。
  • Published on
    Both mock and stub are mummy objects for unit test in spring.When you have lots of dependencies in unit test, creating fake object to reduce dependency is really recommended. Therefore, we use mock and stub. But there are some differences between mock and stub.