Invention Grant
US09158665B2 Unit test of multi-threaded object-oriented applications using mocks
有权
使用mocks进行多线程面向对象应用程序的单元测试
- Patent Title: Unit test of multi-threaded object-oriented applications using mocks
- Patent Title (中): 使用mocks进行多线程面向对象应用程序的单元测试
-
Application No.: US13485606Application Date: 2012-05-31
-
Publication No.: US09158665B2Publication Date: 2015-10-13
- Inventor: David Furodet
- Applicant: David Furodet
- Applicant Address: US CA Palo Alto
- Assignee: VMware, Inc.
- Current Assignee: VMware, Inc.
- Current Assignee Address: US CA Palo Alto
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/36

Abstract:
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.
Public/Granted literature
- US20130326483A1 UNIT TEST OF MULTI-THREADED OBJECT-ORIENTED APPLICATIONS USING MOCKS Public/Granted day:2013-12-05
Information query