发明名称 RESILIENT MOCK OBJECT CREATION FOR UNIT TESTING
摘要 Embodiments of the invention provide a method, system and computer program product for fault alerting in mock object supported unit testing. In an embodiment of the invention, a method for fault alerting in mock object supported unit testing is provided. The method includes creating in memory of a computing system an instance a mock object proxying for an object under test by test code and proxying by method name an invocation of a method in the object under test to the mock object. The method also includes determining whether or not a method exists in memory for the mock object corresponding to the method name. Finally, the method includes invoking an exception handler for the mock object outputting error text indicating a non-presence of a method associated with the method name responsive to a method by the method name not existing in the memory for the mock object, but otherwise invoking a method that exists in the memory of the mock object corresponding to the method name.
申请公布号 US2014095142(A1) 申请公布日期 2014.04.03
申请号 US201213633291 申请日期 2012.10.02
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 BALDWIN TIMOTHY J.
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址