Author Login
Post Reply
Hi,
I am new to JMock2 and I am trying to create a Mock object. My code goes like
this. I have a class X which implements a method fun(); The class is perfectly
implemented, no issues on that.
My test case framework:
[code]
public class XTest {
@Test
public void testFun(){
Mockery context = new JUnit4Mockery();
X t = context.mock(X.class)
}
}
[/code]
This gives an error msg which says X is not an interface!!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email