`
温柔一刀
  • 浏览: 856819 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

When To Use Mock Objects?

    博客分类:
  • java
阅读更多
  • The real object has nondeterministic behavior
  • The real object is difficult to setup
  • The real object has behavior that is hard to trigger
  • The real object is slow
  • The real object is a user interface
  • The real object uses a call back
  • The real object does not yet exist
分享到:
评论

相关推荐

    Unit Testing with Mock Objects

    Keywords: Extreme Programming, Unit Testing, Mock Objects, Stubs 1 Introduction “Once,” said the Mock Turtle at last, with a deep sigh, “I was a real Turtle.” (Alice In Wonderland, Lewis Carroll)

    mockobjects.jar包

    和Junit等一起使用,为测试Dao层提供伪实现

    about mock

    The term 'Mock Objects' has become a popular one to describe special case objects that mimic real objects for testing. Most language environments now have frameworks that make it easy to create mock ...

    Unit Testing C_C++ Code_ When to Mock.pdf

    Useful questions to determine whether or not to mock - Is the real collaborator a source of risk for the stability of my tests? - Is it difficult to initialize the real collaborator? - Is it ...

    phpunit-mock-objects, PHPUnit的模拟对象库.zip

    phpunit-mock-objects, PHPUnit的模拟对象库 PHPUnit_MockObjectPHPUnit_MockObject 是PHPUnit默认的模拟对象库。要求PHP 5.6是必需的,但使用最新版本的PHP非常安装你可以使用 Composer 将这里库作为

    Test Driven Development with Python 2nd edition 2017 pdf

    Learn when and how to use mock objects, and the pros and cons of isolated vs. integrated tests Test and automate your deployments with a staging server Apply tests to the third-party plugins you ...

    MockObjects:缺点和用例

    本文将着重介绍MockObjects——来自XP社区的一项测试技术(XP社区提供了一种独立的代码测试,这种测试是通过模拟外部依赖来实现的)。和使用任何其它工具一样,我们要谨慎,防止滥用。MockObjects概述近些年来,开发...

    .NET MockObjects-开源

    .NET Mock Objects项目是一个.NET框架,其目标是促进以模拟对象样式开发单元测试。

    Test-Driven Development with Python [2017]

    Learn when and how to use mock objects, and the pros and cons of isolated vs. integrated tests Test and automate your deployments with a staging server Apply tests to the third-party plugins you ...

    swagger-to-mock:Swagger3(OpenAPI 3)的模拟数据生成器CLI

    npm i -g swagger-to-mock 生成模拟数据 swagger-to-mock 将在每个API响应中生成JSON文件。 如果您指定了示例,则JSON数据值应该是您的招摇中的示例值。 否则, swagger-to-mock遵循并生成任意值。 如果没有诸如...

    Typemock Isolator-Developers Guide

    Enables you to mock all concrete types, interfaces and static methods and also a chain of calls Allows arbitrary calls, or rejects any method calls that were not explicitly expected Specifies ...

    接口测试面试题50题完整版

    在接口测试中如何使用Mock测试? 13. 接口测试中如何进行关联测试? 14. 如何在接口测试中设置环境变量? 15. 如何在接口测试中使用参数化? 16. 如何在接口测试中使用HTTP请求默认值? 17. 如何在接口测试中使用...

    spring-mock.jar

    Classes contained in spring-mock.jar: org.springframework.mock.jndi.ExpectedLookupTemplate.class org.springframework.mock.jndi.SimpleNamingContext.class org.springframework.mock.jndi....

    基于python的mock测试数据练习

    mock练习

    Mock Objects-开源

    用于测试任何类型代码的通用单元测试框架和方法

    mockServer,mock服务端

    简单的mockServer、模拟后台生成数据、启动后像后台一样直接调用接口

    mock在ut中的使用

    mock

    Python Testing - Beginner's Guide (2010).pdf

    Chapter 4: Breaking Tight Coupling by using Mock Objects covers mock objects and the Python Mocker tool. Chapter 5: When Doctest isn't Enough: Unittest to the Rescue introduces the unittest ...

    Python Testing_ Beginner’s Guide.pdf

    Chapter 4: Breaking Tight Coupling by using Mock Objects covers mock objects and the Python Mocker tool. Chapter 5: When Doctest isn't Enough: Unittest to the Rescue introduces the unittest ...

Global site tag (gtag.js) - Google Analytics