Details
-
Improvement
-
Resolution: Fixed
-
Major
-
4.3
-
None
Description
See also XCOMMONS-317 and XCOMMONS-318
Usage:
@ComponentList({DefaultDiffManager.class}) public class DefaultDiffManagerTest { @Rule public final MockitoComponentMockingRule<DiffManager> mocker = new MockitoComponentMockingRule(DefaultDiffManager.class); ... @Test public void testDiffStringList() throws Exception { // Null DiffResult<String> result = this.mocker.getMockedComponent().diff(null, null, null); ...
Attachments
Issue Links
- is related to
-
XCOMMONS-317 Use a @Rule to configure JMock instead of extending classes
- Closed
-
XCOMMONS-318 Introduce a ComponentManagerRule to replace AbstractComponentTestCase
- Closed