Mock Objects for Unit Testing

Been working on writing unit tests for my business logic and one major hurdle which I faced is to handle external dependencies. Though mocking objects is an obvious solution, if your project is complex and the objects to be mocked are complexly wired, then mock object injection becomes a very interesting challenge.

Found a very nice article which suggests few interesting ideas to achieve the same. This should really help in planning your unit tests.

Happy mocking!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Categories
Archives
« prill 2014
DieHënMarMërEnjPreSht
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today