You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shale.apache.org by Matthias Wessendorf <ma...@apache.org> on 2006/07/06 07:05:38 UTC

SHALE-210

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

Re: SHALE-210

Posted by Matthias Wessendorf <ma...@apache.org>.
I take care tomorrow!

thx,
Matt



On 7/5/06, Matthias Wessendorf <ma...@apache.org> wrote:
> Of course, MockObjectTestCase has lot's of more interesting methods.
> Just to have an example on that.
>
> -Matt
>
> On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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 <cr...@apache.org> wrote:
> > > Looking at it now ...
> > >
> > > Craig
> > >
> > >
> > > On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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
>


-- 
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: SHALE-210

Posted by Matthias Wessendorf <ma...@apache.org>.
Of course, MockObjectTestCase has lot's of more interesting methods.
Just to have an example on that.

-Matt

On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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 <cr...@apache.org> wrote:
> > Looking at it now ...
> >
> > Craig
> >
> >
> > On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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

Re: SHALE-210

Posted by Matthias Wessendorf <ma...@apache.org>.
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 <cr...@apache.org> wrote:
> Looking at it now ...
>
> Craig
>
>
> On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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

Re: SHALE-210

Posted by Craig McClanahan <cr...@apache.org>.
Looking at it now ...

Craig


On 7/5/06, Matthias Wessendorf <ma...@apache.org> 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
>