ajermakovics / eclipse-jmockit

JMockit plugin for Eclipse. Checks and auto-completes mock objects.
http://ajermakovics.github.io/eclipse-jmockit/
Eclipse Public License 1.0
40 stars 15 forks source link

Check reentrants mocks on static methods #11

Open ajermakovics opened 12 years ago

ajermakovics commented 12 years ago

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); return ret; } };