首页>
外国专利>
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.
展开▼