Mock Objects in Unit Testing

xiaoxiao2021-03-06  192

In MSN, I met my old brother (Chen56) learned that recently resigned at home, and put it on SF.NET.

Himock http://himock.sourceforge.net/

I used to understand some of TDD, practiced several times, I feel very good; but Mock Objects's concept is still listening to -_-!

Search Mo, found this concept on XP2000:

Endo Testing: Unit Testing with Mock Objects

Unit testing is the testing of software units in isolation. However, most units do not work alone, but they collaborate with other units. To test a unit in isolation, we have to simulate the collaborators in the test.Mock Objects are test-oriented Replacements for collaborators.

Currently MO project also has easymock, JMOCK

Very interested, recently intended to study; and promise the old brother to do this open source document internationalization

A good opportunity to learn and exercise

转载请注明原文地址:https://www.9cbs.com/read-128510.html

New Post(0)