Thanks for the reply. I do not get what do you mean by the correct
dependencies in powermock-1.2.5-with-dependenices.zip. I'm including
the full version of 1.2.5 jar file in the build path. Here's is a
simplified version of my test case:
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.easymock.PowerMock;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
@PrepareForTest(SampleFinalClass.class)
public class SampleTest {
private SampleFinalClass finalClass;
@Before
public void setUp() {
finalClass = PowerMock.createMock
(sampleFinalClass.class); // The exception get's thrown here
}
}
On Aug 20, 6:24 am, Johan Haleby <
johan.hal...@gmail.com> wrote:
> Hi,
>
> Are you using the correct dependencies (those available in
> powermock-1.2.5-with-dependencies.zip<
http://powermock.googlecode.com/files/powermock-1.2.5-with-dependenci...>)?
> If you are could you please post the code that you're trying to test as well
> as your test case?
>
> /Johan
>