Of course, MockObjectTestCase has lot's of more interesting methods.
Just to have an example on that.
-Matt
On 7/5/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
Come back to here since JIRA discussion sucks :)
I agree on your points. It is possible to use JMock in TestCase,
because JMockTestCase is a test case. The (for me) interesting method
in there is mock(Class clazz) which is basicly something like
<snip>
public Mock mock( Class mockedType, String roleName ) {
Mock newMock = new Mock(newCoreMock(mockedType, roleName));
registerToVerify(newMock);
return newMock;
}
</snip>
So going the *other* way is sort of *re_implementing* JMock :) sorta!
No optimal way.
I can take a look on it, if you like that way much more
<hierachy_of_jmock>
org.jmock.cglib
Class MockObjectTestCase
java.lang.Object
extended by junit.framework.Assert
extended by junit.framework.TestCase
extended by org.jmock.core.VerifyingTestCase
extended by org.jmock.core.MockObjectSupportTestCase
extended by org.jmock.MockObjectTestCase
extended by org.jmock.cglib.MockObjectTestCase
All Implemented Interfaces:
Test
</hierachy_of_jmock>
On 7/5/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Looking at it now ...
>
> Craig
>
>
> On 7/5/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> >
> > Hey,
> >
> > anyone looked at SHALE-210 ?
> >
> > If ok from you I'd like to commit it.
> >
> > http://issues.apache.org/struts/browse/SHALE-210
> >
> > thx,
> > Matt
> >
> > --
> > Matthias Wessendorf
> >
> > futher stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>
>
--
Matthias Wessendorf
futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
--
Matthias Wessendorf
futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com