Message-ID: <624870674.40406.1371605595649.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_40405_789675362.1371605595648" ------=_Part_40405_789675362.1371605595648 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
FEST-Mocks is a Java library which mission is to minimize potent= ial shortcomings of Mock Objects.
More information about the potential shortcomings of mocks can be found = at:
FEST-Mocks requires Java SE 5.0 or lat= er and can be used with either JUnit or TestNG.
It can be downloaded here. For Maven 2 users,= details about the project's repository can be found at here.
One of the shortcomings of using mocks is introduction of clutter and du= plication in our code. Take a look at this example using EasyMock:= p>
The problems with the code listing above are the following:
verifyare duplicated<= /li> =09
verify in every test method, which will result in failing tests
A solution to this problem is FEST's EasyMockTemplate: