首页>
外国专利>
Unit test of multi-threaded object-oriented applications using mocks
Unit test of multi-threaded object-oriented applications using 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.
展开▼