Jmockit in JBoss

Posted by Filip on Stack Overflow See other posts from Stack Overflow or by Filip
Published on 2010-05-28T12:32:18Z Indexed on 2010/05/29 14:12 UTC
Read the original article Hit count: 279

Filed under:
|
|

In a jboss service I need to mock some inner class (not EJB) with JMockit. Just for tests I've created inner class ToBeMocked and another one Mock. While deploying to jboss I get error NoClassDefFoundError in line:

Mockit.setUpMock(ToBeMocked.class, new Mock());

with message:

java.lang.NoClassDefFoundError: mockit/Mockit

jmockit.jar is added to the classpath in jboss_service.xml.

Any ideas?

© Stack Overflow or respective owner

Related posts about java

Related posts about jboss