Manages a set of EasyMock mock objects. Used as a base class for test cases.
Extends from {@link org.testng.Assert} to bring in all the public static assert methods without requiring extraimports.
Provides a common mock factory method, {@link #newMock(Class)}. A single
standard mock control is used for all mock objects. Standard mocks do not care about the exact order in which methods are invoked, though they are as rigourous as strict mocks when checking that parameters are the correct values.
This base class is created with the intention of use within a TestNG test suite; if using JUnit, you can get the same functionality using {@link MockTester}.
This class is thread safe (it uses a thread local to store the mock control). In theory, this should allow TestNG to execute tests in parallel. Unfortunately, as of this writing (TestNG 5.1 and maven-surefire 2.8-SNAPSHOT) parallel execution does not always work fully and consistently, some tests are dropped, and so Tapestry does not make use of TestNG parallel execution.
@see EasyMock#createControl()
@see MockTester