THE PROJECT HAS BEEN DISCONTINUED. SORRY.
|
Take a look at new reference section.
In short tabular form it lists all methods MockCreator's mocks
have, and gives brief explanation for them. Hope it will help
beginners as well as experienced MockCreator users.
|
|
What is the MockCreator? MockCreator, first coded at German
company Abstrakt Gmbh,
and enhanced by me, Vladimir Dyuzhev,
is the generator of mocks. Given an interface or a class, it generates
source of mock class for it.
The main idea of MockCreator development was to reduce knowledge
of real code logic required to write a test. When a number of tests
reaches a few hundrends, it's often becomes too complex to support
them since minor changes in real code often require to alter a bunch
of unit tests. This is because test code often relays too much on, say,
order of calls to setters (which supposed to be independent) or
exact value of parameter (when actually it can be slightly more or less,
like current time).
MockCreator special features (such as expectZeroOrMore, Blocks and Accepts)
are targeted to test logic of an unit, not irrelevant details
of the implementation.
Additionally, MockCreator is able to mock classes (replacing them with
complete fakes when necessary) and even mock static methods! Final classes
and methods are mockable as well (after fake generation)!
MockCreator is in use in large projects, featuring thousands of tests,
and it helps users to reduce test maintenance efforts.
MockCreator just updated to support Java 1.5 features, but not completely tested yet.

|