Reputation: 7729
I'm just curious if there is any software, that could help me with mock management and creation - I prefer Java and .net but I'll be happy to see it for any other languages.
My imagination could be something like this:
A simple wizard that can look into class, generate simple Excel style editor where you can add new mock with different values set, default values etc...
Easy access to this mock via say dot notation and index for example:
MockRepository.getMock => platform.domain.person[person_name="John"]
So, is there something at least little similar around?
Upvotes: 4
Views: 242
Reputation: 233495
Yes, this is called an Auto-Mocking Container.
I'm not aware of any centralized, stable resource that defines the term, but just do a web search for the term and lots of articles are going to come up.
Update: I got tired of the lack of a proper pattern description, so I wrote one.
Upvotes: 2