Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] Jmock2 Object creation

Vivek

2008-07-01

Replies: Find Java Web Hosting

Author LoginPost 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


©2008 gg3721.com - Jax Systems, LLC, U.S.A.