首页> 外国专利> UNIT TEST OF MULTI-THREADED OBJECT-ORIENTED APPLICATIONS USING MOCKS

UNIT TEST OF MULTI-THREADED OBJECT-ORIENTED APPLICATIONS USING MOCKS

机译:使用Mocks进行面向多对象的应用程序的单元测试

摘要

One embodiment of the present invention provides a system that facilitates testing a multi-threaded software application. During operation, the system, in response to invocation of a mock object, identifies a thread and determines whether the identified thread matches a description associated with an actor. The system, in response to the identified thread matching the description associated with the actor, evaluates whether an expectation is met or a stub is executed and returns a value based on the evaluation. In some embodiments, the expectation and the stub are expressed based on a role, wherein the role includes the actor and, optionally, one or more additional actors.
机译:本发明的一个实施例提供了一种有助于测试多线程软件应用程序的系统。在操作期间,系统响应于模拟对象的调用,识别线程并确定所识别的线程是否与与参与者相关联的描述匹配。响应于所识别的线程与与演员相关联的描述匹配的系统,系统评估是否满足期望或执行存根,并基于该评估返回值。在一些实施例中,期望和存根基于角色来表达,其中,角色包括演员以及可选地一个或多个其他演员。

著录项

  • 公开/公告号US2013326483A1

    专利类型

  • 公开/公告日2013-12-05

    原文格式PDF

  • 申请/专利权人 DAVID FURODET;

    申请/专利号US201213485606

  • 发明设计人 DAVID FURODET;

    申请日2012-05-31

  • 分类号G06F9/44;

  • 国家 US

  • 入库时间 2022-08-21 16:02:40

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号