How do Java mocking frameworks work?
Posted
by Amir Rachum
on Stack Overflow
See other posts from Stack Overflow
or by Amir Rachum
Published on 2010-06-07T21:55:04Z
Indexed on
2010/06/07
22:32 UTC
Read the original article
Hit count: 244
This is NOT a question about which is the best framework, etc.
I have never used a mocking framework and I'm a bit puzzled by the idea. How does it know how to create the mock object? Is it done in runtime or generates a file? How do you know its behavior? And most importantly - what is the work flow of using such a framework (what is the step-by-step for creating a test).
Can anyone explain? You can choose whichever framework you like for example, just say what it is.
© Stack Overflow or respective owner