Andrejs Jermakovics
Andrejs Jermakovics
Could be done with this plugin https://github.com/akhikhl/wuff but needs investigation/experimentation.
This should show a warning since the mock method is not reentrant: new MockUp() { @Mock // (reentrant = true) public Logger getLogger(final Class clazz) { Logger ret = LoggerFactory.getLogger(clazz);...
when you press Ctrl+1 in Eclipse it suggests quickfixes for a problem. the plugin should suggest fixes for its reported problems.
As in: static class MockTextReaderForParse extends MockUp http://jmockit.googlecode.com/svn/trunk/www/tutorial/StateBasedTesting.html#reusableMocks