基于模拟对象Mock Object的单元测试研究 |
| |
作者单位: | 厦门海事局通信信息中心 福建厦门361026 |
| |
摘 要: | 在软件测试中,单元测试不仅能够优化软件系统设计,还大大简化了功能测试的测试量。但是在一些情况下进行单元测试比较困难,本文引入了模拟对象Mock Object的概念,利用Mock Object进行单位测试,解决了传统单元测试中存在的一些问题。
|
关 键 词: | 软件测试 单元测试 模拟对象 |
Research of Unit Test Based on Mock Object |
| |
Authors: | LIU Yun |
| |
Abstract: | In software testing, unit test can not only optimize the design of software system but also simplify the quantity of functional test.But in some cases unit test is difficult to be done.This article introduces the concept of Mock Object,uses it to do unit test and resolves some problems in traditional unit test. |
| |
Keywords: | Software testing Unit test Mock Object |
本文献已被 CNKI 等数据库收录! |
|