I’m getting a java.lang.noclassdeffounderror when trying to create a mock class for Component using EasyMock.
private Component mockComponent;
@SuppressWarnings("restriction")
@Before
public void setUp()
{
mockComponent = EasyMock.createMock(Component.class);
}
HI,
Managed to find out that it is not the Component class that is the problem but instead i needed asm (http://forge.ow2.org/projects/asm)
Thanks,
Parag