Top "Jmock" questions

For questions about using jMock.

Unit test private inner class methods

I have a Class A which has an internal Cache represented by a Class B. this inner class is private …

java unit-testing mockito jmock
jMock Mocking Classes and Interface

I was experimenting jMock as my mocking framework for my project. I came into a situation where I need to …

java mocking jmock
Mock a superclass constructor

I would like to know if I can mock a super class constructors call and its super() calls. For example, …

java junit guice mockito jmock
Jmock - How to mock a static method

Possible Duplicate: jmock mocking a static method I am working on a legacy unit test which uses static methods of …

java testing junit jmock
maven - How to solve this error : "The POM for XXX is invalid"?

I'm building a simple project with maven. I'm unable to get it to build because a transitive dependencies is missing, …

java maven dependencies jmock transitive-dependency
How to test protected methods of abstract class using JUnit and JMock

I have such situation - I have interface (say MyInterface) and simple partial implementation (AbstractMyInterface). The latter adds a few …

java unit-testing junit jmock
Mock a public method using Jmockit

I have a class Handler.java It has 2 public methods update(), fetch() In the actual update() implementation I make a …

java unit-testing junit jmockit jmock
java.lang.NoSuchMethodError powermock

Guys Question: How to mock a static final class which has defined some other static final class? Problem Description: When …

java junit easymock powermock jmock
JMock "unexpected invocation" when the same invocation is "expected once, never called"

I changed some method somewhere in our code which shouldn't have caused any weird test failures, but JMock seems to …

java jmock
The type junit.framework.TestCase cannot be resolved. It is indirectly referenced from required .class files

I'm following the example here: jMock - getting started I'm getting this error: The type junit.framework.TestCase cannot be …

java jmock junit3