发明名称 MOCK OBJECT GENERATION
摘要 The disclosure is generally directed towards automatically generating a mock object from a description of a real object, such as for use in testing. Mock object generation logic parses the description to determine interface(s) of the real object, which are replicated in the mock object, and to determine method(s) of the real object, which are simulated in the mock object. The mock object generation logic may generate a description of the mock object that is then compiled into the mock object for execution. Data types may be validated so that the arguments and/or return values from the mock object meet the expectations of a calling object.
申请公布号 US2016070640(A1) 申请公布日期 2016.03.10
申请号 US201514841597 申请日期 2015.08.31
申请人 Home Box Office, Inc. 发明人 Clark Brendan Joseph
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method comprising, generating a mock object from a description of a real object, including parsing the description with mock object generation logic to determine an interface set and a method set that exist within the real object, replicating the interface set of the real object in the mock object, and simulating the method set of the real object in the mock object.
地址 New York NY US