Invention Grant
- Patent Title: Streamlining unit testing through hot code swapping
- Patent Title (中): 通过热代码交换来简化单元测试
-
Application No.: US12894900Application Date: 2010-09-30
-
Publication No.: US08799875B2Publication Date: 2014-08-05
- Inventor: Leo Ziegler , Vincent J. Hardy
- Applicant: Leo Ziegler , Vincent J. Hardy
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Kilpatrick Townsend & Stockton LLP
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
Methods and systems are described for testing methods and other functions by swapping external functions for mock functions. A test case definition is entered by a programmer, which can specify the expected number of arguments and argument values of external function or method calls, the context state, the return value, and any expected error conditions. The test case definition is used by a function tester to automatically create mock functions, modify the target function so that it calls the mock functions, execute the target function with specified arguments and a test context, and then compare the results to expected results.
Public/Granted literature
- US20120084754A1 Streamlining Unit Testing Through Hot Code Swapping Public/Granted day:2012-04-05
Information query